eZ\Bundle\EzPublishRestBundle\Tests\RequestParser\RouterTest::getRouterMock PHP Method

getRouterMock() private method

private getRouterMock ( ) : Symfony\Cmf\Component\Routing\ChainRouter | PHPUnit_Framework_MockObject_MockObject
return Symfony\Cmf\Component\Routing\ChainRouter | PHPUnit_Framework_MockObject_MockObject
    private function getRouterMock()
    {
        if (!isset($this->router)) {
            $this->router = $this->getMock('Symfony\\Cmf\\Component\\Routing\\ChainRouter');
            $this->router->expects($this->any())->method('getContext')->will($this->returnValue(new RequestContext()));
        }
        return $this->router;
    }