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; if (!$continue) break;
$router->next(); $router->next();
$dispatched = false;
} }
if (!$dispatched) { if (!$dispatched) {

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

Loading…
Cancel
Save