summaryrefslogtreecommitdiffstats
path: root/tests/system/routeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/system/routeTest.php')
-rw-r--r--tests/system/routeTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/system/routeTest.php b/tests/system/routeTest.php
index 58d0295..dc22931 100644
--- a/tests/system/routeTest.php
+++ b/tests/system/routeTest.php
@@ -113,11 +113,12 @@ class RoteTest extends PHPUnit_Framework_TestCase
*/
public function testUrl()
{
- Route::add('url', '/<controller>/<action>(/<id>)', array(
+ Route::add('url', '(/<controller>(/<action>(/<id>)))', array(
'controller' => 'home',
'action' => 'index'
));
$route = Route::get('url');
- $this->assertEquals('/home/index/5', $route->url(array('id'=>5)));
+ $this->assertEquals('/home/index/5', $route-> url(array('id' => 5)));
+ $this->assertEquals('/home/index', $route->url());
}
}