prophesize('WellRESTed\Routing\MethodMapInterface'); $route = new StaticRoute("/", $methodMap->reveal()); $this->assertSame(RouteInterface::TYPE_STATIC, $route->getType()); } public function testMatchesExactRequestTarget() { $methodMap = $this->prophesize('WellRESTed\Routing\MethodMapInterface'); $route = new StaticRoute("/", $methodMap->reveal()); $this->assertTrue($route->matchesRequestTarget("/")); } public function testReturnsEmptyArrayForPathVariables() { $methodMap = $this->prophesize('WellRESTed\Routing\MethodMapInterface'); $route = new StaticRoute("/", $methodMap->reveal()); $this->assertSame([], $route->getPathVariables()); } public function testDoesNotMatchNonmatchingRequestTarget() { $methodMap = $this->prophesize('WellRESTed\Routing\MethodMapInterface'); $route = new StaticRoute("/", $methodMap->reveal()); $this->assertFalse($route->matchesRequestTarget("/cats/")); } }