Passing to a non-matching route should return a 404.

pull/165/head
Mike Cao 10 years ago
parent a5f2ac8a15
commit 7c50eb7cfb

@ -1 +1 @@
1.2.8
1.2.9

@ -316,6 +316,8 @@ class Engine {
if (!$continue) break;
$router->next();
$dispatched = false;
}
if (!$dispatched) {

@ -148,8 +148,8 @@ class RouterTest extends PHPUnit_Framework_TestCase
$this->check('OK');
}
// Check if route was passed
function testRoutePassing(){
// Check if route object was passed
function testRouteObjectPassing(){
$this->router->map('/yes_route', function($route){
$this->assertTrue(is_object($route));
},
@ -186,7 +186,7 @@ class RouterTest extends PHPUnit_Framework_TestCase
$this->request->url = '/account';
$this->check('');
$this->check();
}
// Test splat with named parameters

Loading…
Cancel
Save