Exemple #1
0
 function testCanDeleteUser()
 {
     $c = Rest\Client::delete($this->url . "/users/diogok", null, "diogok", "123456");
     $this->assertEqual($c->getResponseCode(), 200);
     $c = Rest\Client::get($this->url . "/users/diogok", null, "diogok", "123456");
     $this->assertEqual($c->getResponseCode(), 404);
 }
 function testUnpreciseBench()
 {
     $c = Rest\Client::get($this->url . "/Foo/bench");
     echo $c->getResponse();
 }