Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHPUnit] Add ReplaceAssertArraySubsetRector #1193

Merged
merged 1 commit into from Mar 13, 2019

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Mar 13, 2019

Closes #1025

Ref sebastianbergmann/phpunit#3495

Check and Cover Reported Cases

Test me!

As this can have many different uses out in the wild and not all can be converted manually, this needs thorought testing.

  1. Install local rector dev
composer require rector/rector:@dev --dev
  1. Create rector.yaml local config
# rector.yaml
services:
    Rector\PHPUnit\Rector\MethodCall\ReplaceAssertArraySubsetRector: ~
  1. Run Rector
vendor/bin/rector process src
  1. Report anomalies

@TomasVotruba TomasVotruba merged commit fbc79b4 into master Mar 13, 2019
@TomasVotruba TomasVotruba deleted the phpunit-assert-subset branch March 13, 2019 13:37
TomasVotruba added a commit that referenced this pull request Nov 8, 2021
rectorphp/rector-src@85c3848 [DowngradePhp80/81] Refactor Downgrade Resource Return to Object to use BooleanOr check (#1193)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant