Skip to content

Commit 73ce624

Browse files
committed
Fix PhpUnitCompat to work on PHPUnit 8
1 parent 0c8693c commit 73ce624

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/PhpUnitCompat.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ trait PhpUnitCompat
2020
{
2121
public function expectExceptionMessageMatches(string $regularExpression) : void
2222
{
23-
if (is_callable('parent::expectExceptionMessageRegExp')) {
24-
parent::expectExceptionMessageRegExp($regularExpression);
23+
if (is_callable('parent::expectExceptionMessageMatches')) {
24+
parent::expectExceptionMessageMatches($regularExpression);
2525

2626
return;
2727
}
2828

29-
parent::expectExceptionMessageMatches($regularExpression);
29+
parent::expectExceptionMessageRegExp($regularExpression);
3030
}
3131
}

0 commit comments

Comments
 (0)