Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 580 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 580 Bytes

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: