Skip to content

Commit

Permalink
feat: add support for trailing slashes in routes and urls
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Jun 3, 2023
1 parent d25fe85 commit 0dfd196
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,7 @@ public function testCanMatchRoute(string $method, string $path, string $url = nu
$_SERVER['REQUEST_METHOD'] = $method;
$_SERVER['REQUEST_URI'] = $url;

$match = $this->app->match(new Request());

$this->assertEquals($expected, $match);
$this->assertEquals($expected, $this->app->match(new Request()));
$this->assertEquals($expected, $this->app->getRoute());
}

Expand Down

0 comments on commit 0dfd196

Please sign in to comment.