Example #1
0
 public function testException()
 {
     $my = new Route();
     try {
         $my->setAll(array("path" => "a", "aclass" => "b", "asd" => "aaa"));
     } catch (ExpectedParamException $e) {
     }
     try {
         $my->setAll(array("path" => "a", "class" => "b", "asd" => "aaa"));
     } catch (UnexpectedParamException $e) {
     }
 }