fix bug in route handles method.

This commit is contained in:
Taylor Otwell
2012-01-18 15:28:16 -06:00
parent 7fa80bcdba
commit 9bcbe6a357
2 changed files with 5 additions and 4 deletions

View File

@@ -19,10 +19,11 @@ class RouteTest extends PHPUnit_Framework_TestCase {
{
$route = new Laravel\Routing\Route('GET /', array('handles' => array('GET /foo/bar')));
$this->assertFalse($route->handles('/'));
$this->assertFalse($route->handles('baz'));
$this->assertTrue($route->handles('foo/*'));
$this->assertTrue($route->handles('foo/bar'));
$this->assertFalse($route->handles('/'));
$this->assertFalse($route->handles('baz'));
$this->assertFalse($route->handles('/foo'));
$route = new Laravel\Routing\Route('GET /', array('handles' => array('GET /', 'GET /home')));