Ejemplo 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);
 }
Ejemplo n.º 2
0
 /**
  * @expectedException MistyRouting\Exception\MalformedRuleException
  */
 public function testParseRule_catchAllNotAtTheEnd()
 {
     RuleParser::parseRule('/news/:*/:id');
 }