Ejemplo n.º 1
0
 function testMethod()
 {
     $r = new RestRequest();
     $this->assertFalse($r->isPost());
     $this->assertFalse($r->isPut());
     $this->assertFalse($r->isDelete());
     $this->assertTrue($r->isGet());
     $this->assertEquals($r->getMethod(), "GET");
 }