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);
}
}