summaryrefslogtreecommitdiff
path: root/tests/Unit/RouteTest.php
blob: 5e3dc3bb7da3e205a9dd68b8343668a54a786a33 (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
    ))
    ->toBeInstance(Route::class);