function testRestDELETE() { $http = new jHttp($_SERVER['HTTP_HOST']); $http->delete($GLOBALS['gJConfig']->urlengine['basePath'] . 'rest.php/test/rest'); $this->assertEqual($http->getStatus(), 200); $this->assertEqual($http->getContent(), 'this is a DELETE response'); }