diff --git a/config/sets/phpunit90.php b/config/sets/phpunit90.php index 51669d81..96f1f45e 100644 --- a/config/sets/phpunit90.php +++ b/config/sets/phpunit90.php @@ -25,5 +25,20 @@ 'expectExceptionMessageRegExp', 'expectExceptionMessageMatches' ), + + + // @see https://github.com/sebastianbergmann/phpunit/issues/4086 + new MethodCallRename( + 'PHPUnit\Framework\TestCase', + 'assertRegExp', + 'assertMatchesRegularExpression' + ), + + // @see https://github.com/sebastianbergmann/phpunit/issues/4089 + new MethodCallRename( + 'PHPUnit\Framework\TestCase', + 'assertNotRegExp', + 'assertDoesNotMatchRegularExpression' + ), ]); };