added another routing test.
This commit is contained in:
parent
021a48552d
commit
e7d3929a5f
|
@ -21,10 +21,11 @@ public function tearDown()
|
|||
public function testBasicRouteCanBeRouted()
|
||||
{
|
||||
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 /home', Router::route('GET', '/home')->key);
|
||||
$this->assertEquals('GET /main', Router::route('GET', '/main')->key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue