Skip to content

Commit

Permalink
Fix PhpUnitCompat to work on PHPUnit 8
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Mar 26, 2020
1 parent 0c8693c commit 73ce624
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/PhpUnitCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ trait PhpUnitCompat
{
public function expectExceptionMessageMatches(string $regularExpression) : void
{
if (is_callable('parent::expectExceptionMessageRegExp')) {
parent::expectExceptionMessageRegExp($regularExpression);
if (is_callable('parent::expectExceptionMessageMatches')) {
parent::expectExceptionMessageMatches($regularExpression);

return;
}

parent::expectExceptionMessageMatches($regularExpression);
parent::expectExceptionMessageRegExp($regularExpression);
}
}

0 comments on commit 73ce624

Please sign in to comment.