GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rectorphp/rector-phpunit: Rector upgrade rules for PHPUnit

BranchesTags
Open more actions menu

Latest commit

 

History

885 Commits
885 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
bench
bench
 
 
config/sets
config/sets
 
 
rules-tests
rules-tests
 
 
rules
rules
 
 
src
src
 
 
stubs
stubs
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
ecs.php
ecs.php
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 
rector.php
rector.php
 
 

Repository files navigation

Rector Rules for PHPUnit

See available PHPUnit rules

Install

This package is already part of rector/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, use Rector\PHPUnit\Set\PHPUnitSetList class and pick one of constants:

use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;

return RectorConfig::configure()
    ->withSets([
        PHPUnitSetList::COMPOSER_BASED,
    ]);

Learn Rector Faster

Rector is a tool that we 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:

  • read a book - The Power of Automated Refactoring
  • hire our experienced team to improve your code base

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

About

Rector upgrade rules for PHPUnit

getrector.com/find-rule?activeRectorSetGroup=phpunit

Topics

astinstant-upgradesphpphpunitrector

Resources

Readme
MIT license
Activity
Custom properties

Stars

117 stars

Watchers

2 watching

Forks

76 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.