コード例 #1
0
ファイル: Router_Test.php プロジェクト: netherphp/avenue
 public function testRouteConditionTranslation()
 {
     /*//
     	test that the shortcuts translate as expected.
     	//*/
     $router = new Nether\Avenue\Router(static::$RequestData['Test']);
     foreach (Nether\Option::Get('nether-avenue-condition-shortcuts') as $old => $new) {
         (new Verify("pattern {$old} translates as expected.", $router->TranslateRouteCondition($old)))->equals($new);
     }
     return;
 }