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