From 6d0000279f16a860146ca0086deb60242be9026f Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 1 Apr 2026 12:31:35 +0700 Subject: [PATCH] [PHPUnit 9] Rename assertRegExp/assertNotRegExp to assertMatchesRegularExpression/assertDoesNotMatchRegularExpression --- config/sets/phpunit90.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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' + ), ]); };