Example #1
0
 /**
  *
  */
 public function testAllows()
 {
     $route = new Route(['GET'], '/foo', 'FooController::fooAction');
     $this->assertTrue($route->allows('GET'));
     $this->assertFalse($route->allows('POST'));
     //
     $route = new Route(['GET', 'POST'], '/foo', 'FooController::fooAction');
     $this->assertTrue($route->allows('GET'));
     $this->assertTrue($route->allows('POST'));
 }