services(); $services->set(TestListenerToHooksRector::class); $services->set(ExplicitPhpErrorApiRector::class); $services->set(SpecificAssertContainsWithoutIdentityRector::class); $services->set(RenameMethodRector::class) ->call('configure', [[ // see https://github.com/sebastianbergmann/phpunit/issues/3957 RenameMethodRector::METHOD_CALL_RENAMES => inline_value_objects([ new MethodCallRename( 'PHPUnit\Framework\TestCase', 'expectExceptionMessageRegExp', 'expectExceptionMessageMatches' ), new MethodCallRename('PHPUnit\Framework\TestCase', 'assertRegExp', 'assertMatchesRegularExpression'), ]), ]]); };