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