Skip to content

rectorphp/custom-phpspec-to-phpunit

Repository files navigation

Rector Rules for PhpSpec to PHPUnit migration

Install

  • runs on PHP 7.4+
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:

About

From PHPSpec and Prophecy to PHPUnit - use at own risk

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages