protected function ResponseListenerTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/EventListener/ResponseListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\ResponseListenerTest::setUp()
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ ResponseListenerTest.php, line 28
Class
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
protected function setUp() {
$this->dispatcher = new EventDispatcher();
$listener = new ResponseListener('UTF-8');
$this->dispatcher
->addListener(KernelEvents::RESPONSE, array(
$listener,
'onKernelResponse',
));
$this->kernel = $this
->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
}