Extends
lithium\test\Unit
Tests that routing is fully reset when calling `Router::reset()`.
Source
public function testResettingRoutes() {
Router::connect('/{:controller}', array('controller' => 'posts'));
$this->request->url = '/hello';
$expected = array('controller' => 'hello', 'action' => 'index');
$result = Router::parse($this->request);
$this->assertEqual($expected, $result->params);
Router::reset();
$this->assertNull(Router::parse($this->request));
}