summaryrefslogtreecommitdiff
path: root/tests/Unit/RouteTest.php
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
committerSam Light <sam@lightscale.co.uk>2026-06-10 19:00:32 +0100
commitb247471d98760f0c4eb97ab98579f9db857d762b (patch)
treea641a8f00e72323eeb5f2f76c4debc08521548e9 /tests/Unit/RouteTest.php
parentf3c8afbcbb313e44f8baf9eb645b0367c18a1d01 (diff)
setup tests
Diffstat (limited to 'tests/Unit/RouteTest.php')
-rw-r--r--tests/Unit/RouteTest.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Unit/RouteTest.php b/tests/Unit/RouteTest.php
new file mode 100644
index 0000000..5e3dc3b
--- /dev/null
+++ b/tests/Unit/RouteTest.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+use Lightscale\Router\Enums\HttpMethod;
+use Lightscale\Router\Enums\SpecialSegment;
+use Lightscale\Router\PathSegment;
+use Lightscale\Router\Route;
+
+it('initializes')
+ ->expect(fn () => new Route(
+ new PathSegment(SpecialSegment::Root),
+ HttpMethod::Get,
+ fn () => null
+ ))
+ ->toBeInstance(Route::class);