Exemplo n.º 1
0
 /**
  * Test HTTP PATCH method detection
  */
 public function testIsPatch()
 {
     $env = \Slim\Environment::mock(array('REQUEST_METHOD' => 'PATCH'));
     $req = new \Slim\Http\Request($env);
     $this->assertTrue($req->isPatch());
 }