summaryrefslogtreecommitdiff
path: root/tests/Unit/PathSegmentMatchTest.php
blob: 9a522a480e29b27bc2ac8ac268c49b742655b412 (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);
});