From 659a09a11b04aa8eb40bcc840c1fa57b357047df Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 18 Jan 2012 11:28:12 -0600 Subject: [PATCH] added mroe tests for route. --- tests/cases/laravel/route.test.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/cases/laravel/route.test.php b/tests/cases/laravel/route.test.php index 34943a45..639e7aed 100644 --- a/tests/cases/laravel/route.test.php +++ b/tests/cases/laravel/route.test.php @@ -15,12 +15,19 @@ public function tearDown() * * @group laravel */ - public function testHandlesReturnsTrueWhenRouteHandlesTheGivenURI() + public function testHandlesIndicatesIfTheRouteHandlesAGivenURI() { $route = new Laravel\Routing\Route('GET /', array('handles' => array('foo/bar'))); $this->assertTrue($route->handles('foo/*')); $this->assertTrue($route->handles('foo/bar')); + $this->assertFalse($route->handles('baz')); + + $route = new Laravel\Routing\Route('GET /', array('handles' => array('/', 'home'))); + + $this->assertTrue($route->handles('/')); + $this->assertTrue($route->handles('home')); + $this->assertFalse($route->handles('foo')); } } \ No newline at end of file