runroom / rector-prophecy-to-mocking
Rector migration rules for Prophecy to Mocking
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:rector-extension
Requires
- php: >=8.0
- symfony/finder: ^4.4|^5.3|^6.0|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- nikic/php-parser: ^4.18
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10.55
- rector/rector: dev-main
- symplify/easy-coding-standard: ^12.1
- symplify/phpstan-extensions: ^11.4
- symplify/rule-doc-generator: ^12.1
- tomasvotruba/class-leak: ^0.2.5
- tracy/tracy: ^2.10
README
Install
composer require runroom/rector-prophecy-to-mocking --dev
Usage
- Register set
$rectorConfig->sets([ MigratePhpUnitSetList::PHPUNIT, ]);
- Run on specific spec directory
vendor/bin/rector process tests
This package handles a lot of changes. Explore these resources to handle edge-cases manually: