protected function getRouterMock() { if (!isset($this->requestParser)) { $this->requestParser = $this->getMock('Symfony\\Component\\Routing\\RouterInterface'); } return $this->requestParser; }