private function getContainer($map) { $this->container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface'); $this->container->method('getParameter')->will($this->returnValueMap($map)); $this->container->expects($this->any())->method('get')->with($this->equalTo('request_stack'))->willReturn($this->getRequestStack()); return $this->container; }