Commit e7d3929a authored by Taylor Otwell's avatar Taylor Otwell

added another routing test.

parent 021a4855
......@@ -21,10 +21,11 @@ class RoutingTest extends PHPUnit_Framework_TestCase {
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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment