From 0b149349fcead1909ea8d03c85670ef9d089203a Mon Sep 17 00:00:00 2001 From: Austin Collier Date: Wed, 3 Jan 2024 14:01:12 -0700 Subject: [PATCH] Test to confirm #161 is fixed. --- tests/RouterTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/RouterTest.php b/tests/RouterTest.php index 9adc7fc..6715652 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php @@ -208,6 +208,12 @@ class RouterTest extends PHPUnit\Framework\TestCase $this->check('OK'); } + public function testWildcardDuplicate() { + $this->router->map('/account/*' , [$this, 'ok']); + $this->request->url = '/account/account/account'; + $this->check('OK'); + } + // Check if route object was passed public function testRouteObjectPassing() {