mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-04 23:06:53 +00:00
Use default empty data values when testing
This commit is contained in:
@@ -8,7 +8,7 @@ class Test {
|
||||
$this->curl->setOpt(CURLOPT_SSL_VERIFYHOST, FALSE);
|
||||
}
|
||||
|
||||
function server($request_method, $data='') {
|
||||
function server($request_method, $data=array()) {
|
||||
$request_method = strtolower($request_method);
|
||||
$this->curl->$request_method(self::TEST_URL, $data);
|
||||
return $this->curl->response;
|
||||
|
||||
Reference in New Issue
Block a user