request = $this->prophesize("\\Psr\\Http\\Message\\ServerRequestInterface"); $this->response = $this->prophesize("\\Psr\\Http\\Message\\ResponseInterface"); $this->middleware = $this->prophesize("\\WellRESTed\\Routing\\MiddlewareInterface"); } public function testMatchesPath() { $route = new StaticRoute("/cats/", $this->middleware->reveal()); $this->assertTrue($route->matchesRequestTarget("/cats/")); } public function testFailsToMatchWrongPath() { $route = new StaticRoute("/dogs/", $this->middleware->reveal()); $this->assertFalse($route->matchesRequestTarget("/cats/")); } public function testReturnsPaths() { $route = new StaticRoute("/cats/", $this->middleware->reveal()); $this->assertEquals("/cats/", $route->getPath()); } }