{"id":15014486,"url":"https://github.com/rectorphp/rector-phpunit","last_synced_at":"2025-05-15T07:07:48.725Z","repository":{"id":38021208,"uuid":"349253169","full_name":"rectorphp/rector-phpunit","owner":"rectorphp","description":"Rector upgrade rules for PHPUnit","archived":false,"fork":false,"pushed_at":"2025-05-07T08:27:06.000Z","size":1369,"stargazers_count":91,"open_issues_count":0,"forks_count":54,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T09:21:12.628Z","etag":null,"topics":["ast","instant-upgrades","php","phpunit","rector"],"latest_commit_sha":null,"homepage":"https://getrector.com/find-rule?activeRectorSetGroup=phpunit","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rectorphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-19T00:18:20.000Z","updated_at":"2025-05-07T08:27:10.000Z","dependencies_parsed_at":"2024-01-09T16:57:20.806Z","dependency_job_id":"8d73d7f2-376d-41f2-a5c0-358125f2accb","html_url":"https://github.com/rectorphp/rector-phpunit","commit_stats":{"total_commits":436,"total_committers":34,"mean_commits":"12.823529411764707","dds":0.3325688073394495,"last_synced_commit":"8fabbb085727ea83aa9eecb6c5da9b7209499eef"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-phpunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-phpunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-phpunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rectorphp%2Frector-phpunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rectorphp","download_url":"https://codeload.github.com/rectorphp/rector-phpunit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528958,"owners_count":21922634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","instant-upgrades","php","phpunit","rector"],"created_at":"2024-09-24T19:45:41.257Z","updated_at":"2025-05-15T07:07:43.713Z","avatar_url":"https://github.com/rectorphp.png","language":"PHP","readme":"# Rector Rules for PHPUnit\n\nSee available [PHPUnit rules](https://getrector.com/find-rule?activeRectorSetGroup=phpunit)\n\n## Install\n\nThis package is already part of [rector/rector](http://github.com/rectorphp/rector) package, so it works out of the box.\n\nAll you need to do is install the main package, and you're good to go:\n\n```bash\ncomposer require rector/rector --dev\n```\n\n## Use Sets\n\nTo add a set to your config, use `Rector\\PHPUnit\\Set\\PHPUnitSetList` class and pick one of constants:\n\n```php\nuse Rector\\Config\\RectorConfig;\nuse Rector\\PHPUnit\\Set\\PHPUnitSetList;\n\nreturn RectorConfig::configure()\n    -\u003ewithSets([\n        PHPUnitSetList::PHPUNIT_90,\n    ]);\n```\n\n\u003cbr\u003e\n\n## Learn Rector Faster\n\nRector is a tool that [we develop](https://getrector.org/) 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:\n\n* read a book - \u003ca href=\"https://leanpub.com/rector-the-power-of-automated-refactoring\"\u003eThe Power of Automated Refactoring\u003c/a\u003e\n* hire our experienced team to \u003ca href=\"https://getrector.org/contact\"\u003eimprove your code base\u003c/a\u003e\n\nBoth ways support us to and improve Rector in sustainable way by learning from practical projects.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frectorphp%2Frector-phpunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frectorphp%2Frector-phpunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frectorphp%2Frector-phpunit/lists"}