use Symfony\Component\HttpKernel\KernelEvents;
/**
* @author Gildas Quemener <
[email protected]>
*/
class AddRequestFormatsListenerTest extends TestCase
{ private AddRequestFormatsListener
$listener;
protected function setUp(): void
{ $this->listener =
new AddRequestFormatsListener(['csv' =>
['text/csv', 'text/plain'
]]);
} public function testIsAnEventSubscriber() { $this->
assertInstanceOf(EventSubscriberInterface::
class,
$this->listener
);
} public function testRegisteredEvent() { $this->
assertSame( [KernelEvents::REQUEST =>
['onKernelRequest', 100
]],