diff --git a/composer.json b/composer.json index d2abdf5c..79a8b691 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ ] }, "require-dev": { - "phpunit/phpunit": "*", + "phpunit/phpunit": ">=8", "php-mock/php-mock-phpunit": "*", - "mockery/mockery": "*" + "mockery/mockery": ">=1.4" } } diff --git a/tests/smsTwilioTest.php b/tests/smsTwilioTest.php index 81b8231f..75f8dd3b 100644 --- a/tests/smsTwilioTest.php +++ b/tests/smsTwilioTest.php @@ -21,7 +21,7 @@ public function test_send_sms_by_api_twilio(): void $mock_init = $this->getFunctionMock("smsapi", "curl_init"); $mock_init->expects($this->any())->willReturnCallback( - function ($ch) { + function () { $ch = array(); return $ch; } @@ -105,7 +105,7 @@ public function test_send_sms_by_api_twilio_lookup_first(): void $mock_init = $this->getFunctionMock("smsapi", "curl_init"); $mock_init->expects($this->any())->willReturnCallback( - function ($ch) { + function () { $ch = array(); return $ch; }