lint/phpunit/prefer-assert-matches-regular-expression
Not in any preset. In Rector’s rector-phpunit/composer-based set. Needs the phpunit extension. Unsafe fix: it can change behavior.
What it does
Turns preg_match comparisons to their method name alternatives in PHPUnit TestCase
Configuration
[lint.rules]
"phpunit/prefer-assert-matches-regular-expression" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AssertRegExp(rector-phpunit)