summaryrefslogtreecommitdiff
path: root/tests/Unit/PathSegmentTypeMatchTest.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
commitac836311005458a10dded324420be92f44976332 (patch)
treef456556ceac141aaaeeb0093c4438a44b99e7148 /tests/Unit/PathSegmentTypeMatchTest.php
parentc762531c8679dbb800346174913bfa21917ac0b5 (diff)
generating routes with parameters and tests
Diffstat (limited to 'tests/Unit/PathSegmentTypeMatchTest.php')
-rw-r--r--tests/Unit/PathSegmentTypeMatchTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Unit/PathSegmentTypeMatchTest.php b/tests/Unit/PathSegmentTypeMatchTest.php
new file mode 100644
index 0000000..8a4e70d
--- /dev/null
+++ b/tests/Unit/PathSegmentTypeMatchTest.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+
+use Lightscale\Router\Enums\PathSegmentType;
+use Lightscale\Router\PathSegmentTypeMatch;
+
+it('initializes with data')
+ ->expect(fn () => new PathSegmentTypeMatch(
+ PathSegmentType::Raw,
+ 'hello'
+ ))
+ ->type->toBe(PathSegmentType::Raw)
+ ->value->toBe('hello');