blob: 3059f261a5928ca390cdae4ebe79c8f69f104c65 (
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\PathSegment;
use Lightscale\Router\PathSegmentMatch;
it('initializes with segment and params', function () {
$match = new PathSegmentMatch(
$seg = new PathSegment('testing'),
$params = ['test1' => 'test2'],
);
expect($match)
->segment->toBe($seg)
->parameters->toBe($params);
});
|