From b247471d98760f0c4eb97ab98579f9db857d762b Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:32 +0100 Subject: setup tests --- phpunit.xml | 17 +++++++++++++++++ tests/Pest.php | 1 + tests/Unit/RouteTest.php | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 phpunit.xml create mode 100644 tests/Pest.php create mode 100644 tests/Unit/RouteTest.php diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..35cdfbb --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,17 @@ + + + + + ./tests + + + + + src + + + diff --git a/tests/Pest.php b/tests/Pest.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/tests/Pest.php @@ -0,0 +1 @@ +expect(fn () => new Route( + new PathSegment(SpecialSegment::Root), + HttpMethod::Get, + fn () => null + )) + ->toBeInstance(Route::class); -- cgit v1.2.3