protected function setUp()
{
parent::setUp();
$this->container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
$this->localeConverter = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\Locale\\LocaleConverterInterface');
$this->configResolver = $this->getMock('eZ\\Publish\\Core\\MVC\\ConfigResolverInterface');
$this->requestStack = new RequestStack();
$parameterBagMock = $this->getMock('Symfony\\Component\\HttpFoundation\\ParameterBag');
$parameterBagMock->expects($this->never())->method($this->anything());
$requestMock = $this->getMock('Symfony\\Component\\HttpFoundation\\Request');
$requestMock->attributes = $parameterBagMock;
$requestMock->expects($this->any())->method('__get')->with($this->equalTo('attributes'))->will($this->returnValue($parameterBagMock));
$this->requestStack->push($requestMock);
}