Closed GeniJaho closed 1 year ago
is this tied to specific start from version phpunit? eg: it start from phpunit 9.1, then it needs to be in phpunit91 config set.
There is actually a rule in the phpunit91 set that renames the method to assertFileDoesNotExist, so this change is not even needed, probably?
Probably just keep as is, and add new MethodCallRename
in phpunit91 config:
new MethodCallRename('PHPUnit\Framework\Assert', 'assertFileNotExists', 'assertFileDoesNotExist'),
It's already there 😁 so I'm closing this PR. https://github.com/rectorphp/rector-phpunit/blob/main/config/sets/phpunit91.php#L19
Fixes https://github.com/rectorphp/rector/issues/7626.