Skip to content

Commit 014521c

Browse files
committed
Fix upmerged usage of deprecated phpunit assert
1 parent 92acfbf commit 014521c

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)