An open API service indexing awesome lists of open source software.

https://github.com/runroom/rector-prophecy-to-mocking


https://github.com/runroom/rector-prophecy-to-mocking

Last synced: 4 months ago
JSON representation

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/