feedly\HTTPClient::delete PHP Method

delete() public method

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

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