You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PHPUnit version 9.1 some of the dedicated asserts methods are renamed to a more readable name.
E.g. assertDirectoryNotExists() is renamed to assertDirectoryDoesNotExists()
(see list on https://github.com/sebastianbergmann/phpunit/blob/9.1.0/ChangeLog-9.1.md)
Since PHPUnit version 10 these deprecated methods are removed.
Problem description
Since PHPUnit version 9.1 some of the dedicated asserts methods are renamed to a more readable name.
E.g. assertDirectoryNotExists() is renamed to assertDirectoryDoesNotExists()
(see list on https://github.com/sebastianbergmann/phpunit/blob/9.1.0/ChangeLog-9.1.md)
Since PHPUnit version 10 these deprecated methods are removed.
The PhpUnitDedicateAssertFixer is still referencing to the old names
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php.
So when i'm using PHPUnit version 10+ the fixer will break my code.
it will not work anymore.
Minimal reproducer
Using the rulset: @PHPUnit100Migration:risky with this code:
Result:
Must be when using PHPUnit 9.1+:
Fixer version
3.54.0
PHP version
8.3.6
How do you run Fixer?
Composer package
Contribution Checks
The text was updated successfully, but these errors were encountered: