Fixed route handles for uri's that partially match

This commit is contained in:
Eric Barnes
2012-01-19 08:47:17 -05:00
parent 9bcbe6a357
commit ea8c6e1825
2 changed files with 3 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ class RouteTest extends PHPUnit_Framework_TestCase {
$this->assertFalse($route->handles('/'));
$this->assertFalse($route->handles('baz'));
$this->assertFalse($route->handles('/foo'));
$this->assertFalse($route->handles('foo'));
$route = new Laravel\Routing\Route('GET /', array('handles' => array('GET /', 'GET /home')));