rector/rector-phpunit
Rector rules for PHPUnit that automate test suite upgrades. Modernize assertions, replace deprecated APIs, and keep tests compatible across PHPUnit versions through automated, configurable refactoring—no manual edits required.
Rector PHPUnit provides a curated set of Rector rules that automate PHPUnit upgrades and test-code modernization. Add it to your Rector config and it rewrites deprecated assertions, renamed methods, and legacy annotations across your suite—letting you move between PHPUnit majors without manual edits.
composer require --dev rector/rector-phpunit
@dataProvider → #[DataProvider])How can I help you explore Laravel packages today?