https://github.com/runroom/rector-prophecy-to-mocking
https://github.com/runroom/rector-prophecy-to-mocking
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/runroom/rector-prophecy-to-mocking
- Owner: Runroom
- Created: 2024-10-23T14:37:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T08:11:29.000Z (over 1 year ago)
- Last Synced: 2025-04-19T23:33:15.480Z (about 1 year ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rector Rules for Prophecy to Mocking migration
## Install
```bash
composer require runroom/rector-prophecy-to-mocking --dev
```
## Usage
1. Register set
```php
$rectorConfig->sets([
MigratePhpUnitSetList::PHPUNIT,
]);
```
2. Run on specific spec directory
```bash
vendor/bin/rector process tests
```
This package handles a lot of changes. Explore these resources to handle edge-cases manually:
* https://johannespichler.com/writing-custom-phpspec-matchers/