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