added another routing test.

This commit is contained in:
Taylor Otwell 2012-01-27 11:39:51 -06:00
parent 021a48552d
commit e7d3929a5f
1 changed files with 2 additions and 1 deletions

View File

@ -21,10 +21,11 @@ public function tearDown()
public function testBasicRouteCanBeRouted() public function testBasicRouteCanBeRouted()
{ {
Router::register('GET /', function() {}); Router::register('GET /', function() {});
Router::register('GET /home', function() {}); Router::register(array('GET /home', 'GET /main'), function() {});
$this->assertEquals('GET /', Router::route('GET', '/')->key); $this->assertEquals('GET /', Router::route('GET', '/')->key);
$this->assertEquals('GET /home', Router::route('GET', '/home')->key); $this->assertEquals('GET /home', Router::route('GET', '/home')->key);
$this->assertEquals('GET /main', Router::route('GET', '/main')->key);
} }
/** /**