/custom-phpspec-to-phpunit

From PHPSpec and Prophecy to PHPUnit - use at own risk

Primary LanguagePHPMIT LicenseMIT

Rector Rules for PhpSpec to PHPUnit migration

Install

  • runs on PHP 7.2+
composer require rector/custom-phpspec-to-phpunit --dev

Usage

  1. Register set
$rectorConfig->sets([
    \Rector\PhpSpecToPHPUnit\Set\MigrationSetList::PHPSPEC_TO_PHPUNIT,
]);
  1. Run on specific spec directory
vendor/bin/rector process spec

This package handles 99 % of changes. Explore these resources to handle edge-cases manually: