summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Unit/RouterTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/RouterTest.php b/tests/Unit/RouterTest.php
index a7e7a21..d0f8912 100644
--- a/tests/Unit/RouterTest.php
+++ b/tests/Unit/RouterTest.php
@@ -228,9 +228,9 @@ it('makes a :dataset route')
})
->toBeInstanceOf(RouteMatch::class);
-it('makes route with or without / prefix', function(string $path) {
- $router = new Router;
- $r = $router->get($path, fn() => null)->getRoute();
+it('makes route with or without / prefix', function (string $path) {
+ $router = new Router();
+ $r = $router->get($path, fn () => null)->getRoute();
expect($router->findRoute(HttpMethod::Get, '/test')?->route)->toBe($r);
})->with(['/test', 'test']);