diff options
Diffstat (limited to 'tests/Unit/PathSegmentTypeMatchTest.php')
| -rw-r--r-- | tests/Unit/PathSegmentTypeMatchTest.php | 14 |
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'); |
