Example #1
0
 public function testMethod()
 {
     $A = $B = $C = $D = $E = true;
     $route = new Route('/', [$A]);
     $route->method('GET', [$B]);
     $route->method('POsT|put||', $C, $D);
     $route->method('foo');
     $route->method('*', $E);
     $this->assertSame(['/' => ['GET' => [$A, $E, $B], 'POST' => [$A, $E, $C, $D], 'PUT' => [$A, $E, $C, $D], 'FOO' => [$A, $E]]], $route->dump());
 }