PHPUnit 10 Shift #51
Reference in New Issue
Block a user
Delete Branch "shift-91888"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request contains changes for upgrading to PHPUnit 10 automated by the PHPUnit 10 Shift.
Before merging, you need to:
shift-91888branchcomposer update(if the scripts fail, add--no-scripts)vendor/bin/phpunitIf there were changes you felt could have been automated, please reply to the follow-up email with your feedback or on Twitter.
⚠️ PHPUnit 10 has made several changes to the configuration file. After running
composer update, you may runvendor/bin/phpunit --migrate-configurationto have PHPUnit upgrade your configuration file.ℹ️ PHPUnit has documented using return types for test cases and data providers since PHPUnit 8. In an effort to modernize your test suite, Shift added a return type of
voidto your test cases and a return type ofarrayto your data providers.Shift understands developers have different preferences when it comes to type hints. If you do not wish to add return types, you may undo this change by running
git revert a3659777.ℹ️ PHPUnit has documented declaring test classes as
finalsince PHPUnit 8. In an effort to modernize your test suite, Shift has declared your test classes asfinal.Shift understands developers have different preferences when it comes to using
final. If you do not wish to declare your test classes asfinal, you may undo this change by runninggit revert 5e838ad6.⚠️ PHPUnit 10 now requires any base test class to have a TestCase suffix. In addition, this class should be defined as
abstract. If you have a custom base test class, you should ensure it meets these new requirements.⚗️ This Shift is still being refined. Please report any issues or suggestions to shift@laravelshift.com. Your feedback is what helps improve the experience for everyone.