Extends
lithium\test\Unit
Tests basic options for connecting routes.
Source
public function testBasicRouteMatching() {
Router::connect('/hello', array('controller' => 'posts', 'action' => 'index'));
$expected = array('controller' => 'posts', 'action' => 'index');
foreach (array('/hello/', '/hello', 'hello/', 'hello') as $url) {
$this->request->url = $url;
$result = Router::parse($this->request);
$this->assertEqual($expected, $result->params);
$this->assertEqual(array('controller'), $result->persist);
}
}