diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
| commit | fdb23965a0daf06e85de4fc11a83e5f96656cc81 (patch) | |
| tree | 4e8404e00b5c6335c52deec8244aa8fed8c78882 | |
| parent | 2a021cc06de7c1535dd000c14587d93cf278d4d2 (diff) | |
code formatting
| -rw-r--r-- | tests/Unit/RouterTest.php | 6 |
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']); |
