Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::routeMatchesPath PHP Méthode

routeMatchesPath() protected méthode

protected routeMatchesPath ( string $routePath ) : boolean
$routePath string
Résultat boolean
    protected function routeMatchesPath($routePath)
    {
        /** @var Http\Request $mockHttpRequest|\PHPUnit_Framework_MockObject_MockObject */
        $mockHttpRequest = $this->getMockBuilder(Http\Request::class)->disableOriginalConstructor()->getMock();
        $mockHttpRequest->expects($this->any())->method('getRelativePath')->will($this->returnValue($routePath));
        return $this->route->matches($mockHttpRequest);
    }
RouteTest