summaryrefslogtreecommitdiff
path: root/tests/Unit/RouteTest.php
diff options
context:
space:
mode:
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);