1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-27 01:54:22 +02:00
This commit is contained in:
Danny van Kooten
2019-11-23 12:01:41 +01:00
parent a80bb36f11
commit 127f6e9699
2 changed files with 8 additions and 5 deletions

View File

@@ -371,7 +371,7 @@ class AltoRouterTest extends PHPUnit\Framework\TestCase
->getMock();
// this should prove that compileRoute is not called when the route doesn't
// have any params in it, but this doesn't work because compileRoute is private.
// have any params in it
$router->expects($this->never())
->method('compileRoute');
@@ -384,8 +384,6 @@ class AltoRouterTest extends PHPUnit\Framework\TestCase
'name' => 'contact'
], $router->match('/contact', 'GET'));
$router->map('GET', '/page/[:id]', 'pages#show', 'page');
// no prefix match, so no regex compilation necessary
$this->assertFalse($router->match('/page1', 'GET'));
}