mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-27 01:54:22 +02:00
fix #241
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user