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

declare(strict_types=1);

use Lightscale\Router\Enums\HttpMethod;
use Lightscale\Router\Enums\SpecialSegment;
use Lightscale\Router\PathSegment;
use Lightscale\Router\Route;

it('initializes')
    ->expect(fn () => new Route(
        new PathSegment(SpecialSegment::Root),
        HttpMethod::Get,
        fn () => null
    ))
    ->toBeInstanceOf(Route::class);