From 8c0efd0d9317ad92bd55cd6afcd41bdbab827bf8 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Jun 2026 19:00:32 +0100 Subject: Make basic routing work --- tests/Unit/RouteCallTest.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Unit/RouteCallTest.php (limited to 'tests/Unit/RouteCallTest.php') diff --git a/tests/Unit/RouteCallTest.php b/tests/Unit/RouteCallTest.php new file mode 100644 index 0000000..70cc50e --- /dev/null +++ b/tests/Unit/RouteCallTest.php @@ -0,0 +1,22 @@ +createServerRequest(HttpMethod::Get->value, '/test/test'), + route: $route = new Route(HttpMethod::Get, fn () => null), + parameters: $params = ['test1' => 'test2'], + ); + + expect($call) + ->request->toBe($req) + ->route->toBe($route) + ->parameters->toBe($params); +}); -- cgit v1.2.3