Skip to content

Commit 32d46fe

Browse files
authored
minor KnpLabs#995 Fix upmerged usage of deprecated phpunit assert (acrobat)
This PR was merged into the 3.2.x-dev branch. Discussion ---------- Commits ------- 014521c Fix upmerged usage of deprecated phpunit assert
2 parents 92acfbf + 014521c commit 32d46fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Github/Tests/HttpClient/Plugin/GithubExceptionThrowerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function (RequestInterface $request) use ($promise) {
4949
if ($exception) {
5050
$this->expectException(get_class($exception));
5151
$this->expectExceptionCode($exception->getCode());
52-
$this->expectExceptionMessageRegExp('/'.preg_quote($exception->getMessage(), '/').'$/');
52+
$this->expectExceptionMessageMatches('/'.preg_quote($exception->getMessage(), '/').'$/');
5353
}
5454

5555
$result->wait();

0 commit comments

Comments
 (0)