protected function setUp()
{
parent::setUp();
$this->controllerResolver = $this->getMock('Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface');
$this->viewBuilderRegistry = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\View\\Builder\\ViewBuilderRegistry');
$this->eventDispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
$this->logger = $this->getMock('Psr\\Log\\LoggerInterface');
$this->controllerListener = new ViewControllerListener($this->controllerResolver, $this->viewBuilderRegistry, $this->eventDispatcher, $this->logger);
$this->request = new Request();
$this->event = $this->getMockBuilder('Symfony\\Component\\HttpKernel\\Event\\FilterControllerEvent')->disableOriginalConstructor()->getMock();
$this->event->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
$this->viewBuilderMock = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\View\\Builder\\ViewBuilder');
}