public function testViewInSub2() { $views = array(array('regex' => '#^/#', 'sub' => array(array('regex' => '#^$#', 'view' => array('\\helloworld\\views\\Views', 'you'), 'name' => 'home')))); $tests = array(array('/', 'home', array(''))); foreach ($tests as $t) { $this->assertequals($t[0], URL::reverse($views, $t[1], $t[2])); } }