diff --git a/tests/PHPCurlClass/PHPCurlClassTest.php b/tests/PHPCurlClass/PHPCurlClassTest.php index bde0e76..d22414a 100644 --- a/tests/PHPCurlClass/PHPCurlClassTest.php +++ b/tests/PHPCurlClass/PHPCurlClassTest.php @@ -4690,7 +4690,7 @@ class PHPCurlClassTest extends \PHPUnit\Framework\TestCase // likelihood that the request will be stopped before the full response // is downloaded. // 51200 bytes/s = 50 kilobits/s. - $test_2->setOpt(CURLOPT_MAX_RECV_SPEED_LARGE, 51200); + $test_2->curl->setOpt(CURLOPT_MAX_RECV_SPEED_LARGE, 51200); $test_2->curl->setStop($stop_request_early); $test_2->server('download_file_size', 'GET', [ 'bytes' => $response_length_bytes,