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);
}