From ddb04a900e2455702816223622b8b4728d0139a0 Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Tue, 4 Feb 2025 15:01:35 -0500 Subject: [PATCH] Fix parameters test --- tests/test.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test.php b/tests/test.php index 2a5859a..2b21d14 100644 --- a/tests/test.php +++ b/tests/test.php @@ -70,8 +70,7 @@ $testRoutes = [ }], ]; -$routes = addRoutes($testRoutes); - +foreach ($testRoutes as $route) SegmentRouter::add($routes, ...$route); for ($i = 0; $i < 10; $i++) { [$method, $uri] = $testRoutes[array_rand($testRoutes)];