- runs on PHP 7.2+
composer require rector/custom-phpspec-to-phpunit --dev
- Register set
$rectorConfig->sets([
\Rector\PhpSpecToPHPUnit\Set\MigrationSetList::PHPSPEC_TO_PHPUNIT,
]);
- Run on specific spec directory
vendor/bin/rector process spec
This package handles 99 % of changes. Explore these resources to handle edge-cases manually: