setCurlOption() public method

Setter to allow the adding / changing of the Curl options that will be used within the HTTP requests
public setCurlOption ( integer $key, mixed $value )
$key integer The CURLOPT_XXX option to set e.g. CURLOPT_TIMEOUT
$value mixed The value to be set on option e.g. 10
Example #1
0
 public function testSetCurlOption()
 {
     $api = new Api();
     $api->setCurlOption(CURLOPT_TIMEOUT, 5);
     $this->assertEquals(5, $api->curl_options[CURLOPT_TIMEOUT]);
 }