Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::routeMatchesPath PHP Method

routeMatchesPath() protected method

protected routeMatchesPath ( string $routePath ) : boolean
$routePath string
return 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