Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rector upgrade rules for PHPUnit

License

NotificationsYou must be signed in to change notification settings

rectorphp/rector-phpunit

Repository files navigation

See availablePHPUnit rules

Install

This package is already part ofrector/rector package, so it works out of the box.

All you need to do is install the main package, and you're good to go:

composer require rector/rector --dev

Use Sets

To add a set to your config, useRector\PHPUnit\Set\PHPUnitSetList class and pick one of constants:

useRector\Config\RectorConfig;useRector\PHPUnit\Set\PHPUnitSetList;return RectorConfig::configure()    ->withSets([        PHPUnitSetList::PHPUNIT_90,    ]);

Learn Rector Faster

Rector is a tool thatwe develop and share for free, so anyone can save hundreds of hours on refactoring. But not everyone has time to understand Rector and AST complexity. You have 2 ways to speed this process up:

Both ways support us to and improve Rector in sustainable way by learning from practical projects.

Contributors52

Languages


[8]ページ先頭

©2009-2025 Movatter.jp