From 73ce62471dd5df8698f7e80cc92b6a4e207877df Mon Sep 17 00:00:00 2001 From: Eugene Leonovich Date: Fri, 27 Mar 2020 00:33:47 +0100 Subject: [PATCH] Fix PhpUnitCompat to work on PHPUnit 8 --- tests/PhpUnitCompat.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/PhpUnitCompat.php b/tests/PhpUnitCompat.php index 3f39d0e8..985939a0 100644 --- a/tests/PhpUnitCompat.php +++ b/tests/PhpUnitCompat.php @@ -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); } }