protected function setUp()
{
parent::setUp();
$this->configResolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
$this->router = $this->getMock('Symfony\\Component\\Routing\\RouterInterface');
$this->logger = $this->getMock('Psr\\Log\\LoggerInterface');
$this->requestEventListener = new RequestEventListener($this->configResolver, $this->router, 'foobar', $this->logger);
$this->request = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\Request')->setMethods(array('getSession', 'hasSession'))->getMock();
$this->httpKernel = $this->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
$this->event = new GetResponseEvent($this->httpKernel, $this->request, HttpKernelInterface::MASTER_REQUEST);
}