Example #1
0
 public function testGetRoutePath()
 {
     $router = new Router();
     $route = (new Route("/foo/{bar}"))->name("route");
     $router->addRoute($route);
     $actual = $router->getRoutePath("route", ["bar" => 1]);
     $expected = "/foo/1";
     $this->assertSame($expected, $actual);
 }