diff --git a/cake/tests/cases/libs/router.test.php b/cake/tests/cases/libs/router.test.php index e85e70e3a..6aa7c798f 100644 --- a/cake/tests/cases/libs/router.test.php +++ b/cake/tests/cases/libs/router.test.php @@ -39,11 +39,6 @@ if (!defined('CAKE_ADMIN')) { */ class RouterTest extends UnitTestCase { - function RouterTest() { - parent::UnitTestCase(); - $this->startTime = getMicrotime(); - } - function setUp() { $this->router =& Router::getInstance(); //$this->router->reload(); @@ -355,6 +350,11 @@ class RouterTest extends UnitTestCase { $result = $this->router->parse('pages/display/home'); $this->assertEqual($result, $expected); + + $this->router->reload(); + $this->router->connect('/page/*', array('controller' => 'test')); + $result = $this->router->parse('/page/my-page'); + $expected = array('pass' => array('my-page'), 'plugin' => null, 'controller' => 'test', 'action' => 'index'); } function testAdminRouting() { @@ -464,10 +464,6 @@ class RouterTest extends UnitTestCase { $expected = array('pass'=>array('contact'), 'plugin'=> null, 'controller'=>'pages', 'action'=>'display'); $this->assertEqual($result, $expected); } - - function testEnd() { - pr(round(getMicrotime() - $this->startTime, 5)); - } } ?> \ No newline at end of file