コード例 #1
0
ファイル: coreurlTest.php プロジェクト: photon/photon
 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]));
     }
 }