diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
| commit | ac836311005458a10dded324420be92f44976332 (patch) | |
| tree | f456556ceac141aaaeeb0093c4438a44b99e7148 /tests/Unit/PathSegmentTest.php | |
| parent | c762531c8679dbb800346174913bfa21917ac0b5 (diff) | |
generating routes with parameters and tests
Diffstat (limited to 'tests/Unit/PathSegmentTest.php')
| -rw-r--r-- | tests/Unit/PathSegmentTest.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/Unit/PathSegmentTest.php b/tests/Unit/PathSegmentTest.php index 62c6ec9..ffad95f 100644 --- a/tests/Unit/PathSegmentTest.php +++ b/tests/Unit/PathSegmentTest.php @@ -57,20 +57,6 @@ it('gets type :dataset', function (PathSegmentType $type) { } }); -it('is made from route string :dataset', function (string $v, PathSegmentType $type) { - $seg = PathSegment::makeFromRouteString($v); - expect($seg->getType())->toBe($type); -})->with([ - $v = '{test-test}' => [$v, PathSegmentType::Parameter], - $v = '{test_test}' => [$v, PathSegmentType::Parameter], - $v = '{testTest}' => [$v, PathSegmentType::Parameter], - $v = '{TestTest}' => [$v, PathSegmentType::Parameter], - $v = '{testTest912}' => [$v, PathSegmentType::Parameter], - $v = 'hello-hello' => [$v, PathSegmentType::Raw], - $v = 'hellohello123' => [$v, PathSegmentType::Raw], - $v = 'hello_hello' => [$v, PathSegmentType::Raw], -]); - it('defaults type to Raw') ->expect(fn () => (new PathSegment('testing'))->getType()) ->toBe(PathSegmentType::Raw); |
