Esempio n. 1
0
 public function testIsDelete()
 {
     $o = new PopulatedRequest();
     $o->setHttpMethod(HttpRequestTypes::DELETE);
     $this->assertFalse($o->isHead());
     $this->assertFalse($o->isGet());
     $this->assertFalse($o->isPost());
     $this->assertFalse($o->isPut());
     $this->assertTrue($o->isDelete());
 }