Example #1
0
 public function testMatchesWithoutHttpMethodShouldReturnFalseForNonMatchingPaths()
 {
     $route = new Route('GET', '/test', function () {
     });
     $request = Request::create(false, 'localhost', '/unknown-route', null, 'POST');
     $this->assertFalse($route->matches($request));
     $this->assertFalse($route->matchesWithoutHttpMethod($request));
 }