feedly\HTTPClient::delete PHP Méthode

delete() public méthode

public delete ( $url )
    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);
    }

Usage Example

 /**
  * @expectedException Exception
  */
 public function testDeleteFailure()
 {
     // Create a stub for the SomeClass class.
     $client = new HTTPClient();
     $client->delete('nonexistentsite');
 }