summaryrefslogtreecommitdiff
path: root/tests/Unit/RouterTest.php
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:33 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:33 +0100
commitfdb23965a0daf06e85de4fc11a83e5f96656cc81 (patch)
tree4e8404e00b5c6335c52deec8244aa8fed8c78882 /tests/Unit/RouterTest.php
parent2a021cc06de7c1535dd000c14587d93cf278d4d2 (diff)
code formatting
Diffstat (limited to 'tests/Unit/RouterTest.php')
-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']);