private function createRoute($method, $path) { $routeData = $this->routeParser->parse($this->configuration->basePath . $path); return new RouteInitializer($this->routeContainer, $method, $routeData); }
/** * @expectedException \Routy\Exceptions\RouteParseException */ public function testParseThrowsWhenParameterAppearsTwice() { $this->parser->parse('/{parameter}/{parameter:\\w+}'); }