@@ -69,7 +69,7 @@ public function testMultiCurlCallback()
6969 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
7070 ) {
7171 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
72- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
72+ $ request_method = \ Helper \get_request_method ( $ instance );
7373 if ($ request_method === 'DELETE ' ) {
7474 \PHPUnit \Framework \Assert::assertFalse ($ delete_before_send_called );
7575 \PHPUnit \Framework \Assert::assertFalse ($ delete_success_called );
@@ -146,7 +146,7 @@ public function testMultiCurlCallback()
146146 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
147147 ) {
148148 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
149- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
149+ $ request_method = \ Helper \get_request_method ( $ instance );
150150 if ($ request_method === 'DELETE ' ) {
151151 \PHPUnit \Framework \Assert::assertTrue ($ delete_before_send_called );
152152 \PHPUnit \Framework \Assert::assertFalse ($ delete_success_called );
@@ -244,7 +244,7 @@ public function testMultiCurlCallback()
244244 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
245245 ) {
246246 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
247- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
247+ $ request_method = \ Helper \get_request_method ( $ instance );
248248 if ($ request_method === 'DELETE ' ) {
249249 \PHPUnit \Framework \Assert::assertTrue ($ delete_before_send_called );
250250 \PHPUnit \Framework \Assert::assertTrue ($ delete_success_called );
@@ -429,7 +429,7 @@ public function testMultiCurlCallbackError()
429429 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
430430 ) {
431431 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
432- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
432+ $ request_method = \ Helper \get_request_method ( $ instance );
433433 if ($ request_method === 'DELETE ' ) {
434434 \PHPUnit \Framework \Assert::assertFalse ($ delete_before_send_called );
435435 \PHPUnit \Framework \Assert::assertFalse ($ delete_success_called );
@@ -526,7 +526,7 @@ public function testMultiCurlCallbackError()
526526 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
527527 ) {
528528 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
529- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
529+ $ request_method = \ Helper \get_request_method ( $ instance );
530530 if ($ request_method === 'DELETE ' ) {
531531 \PHPUnit \Framework \Assert::assertTrue ($ delete_before_send_called );
532532 \PHPUnit \Framework \Assert::assertFalse ($ delete_success_called );
@@ -603,7 +603,7 @@ public function testMultiCurlCallbackError()
603603 &$ search_before_send_called , &$ search_success_called , &$ search_error_called , &$ search_complete_called
604604 ) {
605605 \PHPUnit \Framework \Assert::assertInstanceOf ('Curl\Curl ' , $ instance );
606- $ request_method = $ instance-> getOpt ( CURLOPT_CUSTOMREQUEST );
606+ $ request_method = \ Helper \get_request_method ( $ instance );
607607 if ($ request_method === 'DELETE ' ) {
608608 \PHPUnit \Framework \Assert::assertTrue ($ delete_before_send_called );
609609 \PHPUnit \Framework \Assert::assertFalse ($ delete_success_called );
0 commit comments