Skip to content

Commit

Permalink
tests: generalized expected curl error message
Browse files Browse the repository at this point in the history
  • Loading branch information
uestla committed Sep 12, 2023
1 parent e3b8742 commit 68b64cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/tester/ReCaptchaControl/DI/ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

Assert::exception(static function () use ($requester): void {
$requester->post('https://google.com');
}, RequestException::class, 'Cannot fetch URL "https://google.com": error setting certificate verify locations:%A%'); // check also the invalid certificate options right away
}, RequestException::class, '#^Cannot fetch URL "https://google.com": error setting certificate (verify locations|file):#'); // check also the invalid certificate options right away

})();

Expand Down
2 changes: 1 addition & 1 deletion tests/tester/ReCaptchaControl/Http/CurlRequesterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

Assert::exception(static function () use ($requester): void {
$requester->post('https://example.com');
}, RequestException::class, 'Cannot fetch URL "https://example.com": error setting certificate verify locations:%A%');
}, RequestException::class, '#^Cannot fetch URL "https://example.com": error setting certificate (verify locations|file):#');

})();

Expand Down

0 comments on commit 68b64cb

Please sign in to comment.