Beispiel #1
0
 public function testMatchingWithVariables()
 {
     $path = '/foo/{x}/bar/{y}/baz';
     $route = new Route($path);
     $expected = ['x' => 1, 'y' => 2];
     $actual = $route->matches('/foo/1/bar/2/baz');
     $this->assertEquals($expected, $actual);
 }