summaryrefslogtreecommitdiff
path: root/tests/Unit/Enums/PathSegmentTypeTest.php
blob: f2fda0a88563c70fb617cd93a2568a6eaa44bad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

declare(strict_types=1);

use Lightscale\Router\Enums\PathSegmentType;

it('has no routeMatchRegex for Raw')
    ->expect(fn () => PathSegmentType::Raw->routeMatchRegex())
    ->toBeNull();

it('has no routeMatchRegex for Root')
    ->expect(fn () => PathSegmentType::Root->routeMatchRegex())
    ->toBeNull();

it('has routeMatchRegex for Parameter')
    ->expect(fn () => PathSegmentType::Parameter->routeMatchRegex())
    ->toBeString();