private getMockRouter ( ) : PHPUnit_Framework_MockObject_MockObject | ||
return | PHPUnit_Framework_MockObject_MockObject |
private function getMockRouter()
{
$mockRouter = $this->getMock('Symfony\\Component\\Routing\\RouterInterface');
$mockRouter->expects($this->any())->method('generate')->with('fake_route', [], UrlGeneratorInterface::ABSOLUTE_URL)->will($this->returnValue('http://github.com/eko/FeedBundle/article/fake/url'));
return $mockRouter;
}