Свойство | Тип | Описание | |
---|---|---|---|
$apiResponse | |||
$instance | the instance used in the tests. Either the original Curl object or a stubbed version | ||
$parameters | collects all the parameters of the curl request | ||
$result | keeps the result of curl_exec | ||
$url |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
exec ( $ch ) | ||
fields ( ) : array | Returns the POST fields that were meant to be sent to the server | |
getinfo ( $ch, $opt ) | When stubbing exec() this function must be stubbed too to return code | |
getopt ( $option ) : mixed | Returns the option that was set in the curl object | |
globalSetopt ( $ch, $option, $value ) | ||
http_method ( ) | ||
init ( $url = null ) | ||
mockApi ( $test ) | ||
mockUpload ( $test ) | ||
setopt ( $ch, $option, $value ) | ||
url_path ( ) |
public getinfo ( $ch, $opt ) |
public static $instance |