PHPackages                             symplify/phpunit-upgrader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. symplify/phpunit-upgrader

Abandoned → [rector/rector](/?search=rector%2Frector)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

symplify/phpunit-upgrader
=========================

Upgrade PHPUnit tests with smart helping hand

9.4.53(4y ago)36.5kMITPHPPHP &gt;=8.0

Since Nov 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/deprecated-packages/phpunit-upgrader)[ Packagist](https://packagist.org/packages/symplify/phpunit-upgrader)[ RSS](/packages/symplify-phpunit-upgrader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (177)Used By (0)

PHPUnit Upgrades
================

[](#phpunit-upgrades)

[![Downloads total](https://camo.githubusercontent.com/de4b0518484ed0cdd15fc55910995c7f45817872029a120a79bc617358fe6dde/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f706870756e69742d75706772616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/phpunit-upgrader/stats)

Upgrade PHPUnit tests with smart helping hand.

Install
-------

[](#install)

```
composer require symplify/phpunit-upgrader --dev
```

Usage
-----

[](#usage)

### 1. Change `assertContains()` on string calls to `assertStringContainsString()`

[](#1-change-assertcontains-on-string-calls-to-assertstringcontainsstring)

```
vendor/bin/phpunit-upgrader assert-contains /tests --error-report-file report.txt
```

Where `report.txt` is the output of PHPUnit run with fails:

```
1) Whatever::whatever
TypeError: Argument 2 passed to PHPUnit\Framework\Assert::assertContains() must be iterable, string given, called in somePath.php on line 100
```

### 2. Add `void` to `setUp()` and `tearDown()` methods

[](#2-add-void-to-setup-and-teardown-methods)

```
vendor/bin/phpunit-upgrader voids /tests
```

Report Issues
-------------

[](#report-issues)

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)

Contribute
----------

[](#contribute)

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

176

Last Release

1715d ago

Major Versions

0.4.2 → 9.0.0-BETA22020-11-23

PHP version history (3 changes)0.4.1PHP &gt;=7.2

9.0.0-rc1PHP &gt;=7.3

v9.3.27PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (150 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/symplify-phpunit-upgrader/health.svg)

```
[![Health](https://phpackages.com/badges/symplify-phpunit-upgrader/health.svg)](https://phpackages.com/packages/symplify-phpunit-upgrader)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)[worksome/graphlint

A static analysis tool for GraphQL

13189.4k](/packages/worksome-graphlint)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)[bab/tested-routes-checker-bundle

A bundle to ensure all routes of a Symfony application have been tested

122.9k](/packages/bab-tested-routes-checker-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
