Exemplo n.º 1
0
 /**
  * Route sets custom pattern that overrides pattern
  */
 public function testRouteSetsCustomTemplate()
 {
     $route = new \Slim\Route('/hello/*', function () {
     });
     $route->setPattern('/hello/:name');
     $this->assertEquals('/hello/:name', $route->getPattern());
 }
Exemplo n.º 2
0
 public function testGetPattern()
 {
     $route = new \Slim\Route('/foo', function () {
     });
     $this->assertEquals('/foo', $route->getPattern());
 }