public function delete($url) { curl_setopt($this->_ch, CURLOPT_URL, $url); curl_setopt($this->_ch, CURLOPT_CUSTOMREQUEST, "DELETE"); $response = $this->exec(); return $this->checkResponse($response); }
/** * @expectedException Exception */ public function testDeleteFailure() { // Create a stub for the SomeClass class. $client = new HTTPClient(); $client->delete('nonexistentsite'); }