You are here

protected function ResponseListenerTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ResponseListenerTest

Namespace

Symfony\Component\HttpKernel\Tests\EventListener

Code

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');
}