Skip to content

Commit

Permalink
fix smsTwilioTest for php7 + set minimum version requirement for phpu…
Browse files Browse the repository at this point in the history
…nit + mockery (#889)
  • Loading branch information
David Coutadeur committed Apr 24, 2024
1 parent 6e82db6 commit cf74a18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
]
},
"require-dev": {
"phpunit/phpunit": "*",
"phpunit/phpunit": ">=8",
"php-mock/php-mock-phpunit": "*",
"mockery/mockery": "*"
"mockery/mockery": ">=1.4"
}
}
4 changes: 2 additions & 2 deletions tests/smsTwilioTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit cf74a18

Please sign in to comment.