Esempio n. 1
0
 public function __construct($routeName, $rule, $controller, $action)
 {
     $this->routeName = $routeName;
     $this->rule = $rule;
     $this->controller = $controller;
     $this->action = $action;
     $this->parsedRule = RuleParser::parseRule($rule);
 }
Esempio n. 2
0
 /**
  * @expectedException MistyRouting\Exception\MalformedRuleException
  */
 public function testParseRule_catchAllNotAtTheEnd()
 {
     RuleParser::parseRule('/news/:*/:id');
 }