PHPackages                             theodo/phpunit-extra - 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. theodo/phpunit-extra

ActiveLibrary[Testing &amp; Quality](/categories/testing)

theodo/phpunit-extra
====================

PHP library which improves PHPUnit test suite performance

1.0(6y ago)623MITPHP

Since Dec 17Pushed 6y ago17 watchersCompare

[ Source](https://github.com/theodo/phpunit-extra)[ Packagist](https://packagist.org/packages/theodo/phpunit-extra)[ RSS](/packages/theodo-phpunit-extra/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

PHPUnit Extra
=============

[](#phpunit-extra)

PHPUnit Extra provides a PHPUnit listener to improve performance of your PHPUnit test suites by cleaning up classes variables at the end of each TestCase. Thanks [Kris Wallsmith for this tip](http://kriswallsmith.net/post/18029585104/faster-phpunit).

Installation
------------

[](#installation)

### Step 1: Install the library

[](#step-1-install-the-library)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require --dev theodo/phpunit-extra
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Configure the listener in PHPUnit

[](#step-2-configure-the-listener-in-phpunit)

For PHPUnit &gt;= 7.5, add the extension in your XML config file (e.g. `phpunit.xml.dist`).

```

```

For PHPUnit &lt; 7.5 add the listener in your XML config file (e.g. `phpunit.xml.dist`).

```

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2343d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/332041?v=4)[Theodo FR](/maintainers/theodo)[@theodo](https://github.com/theodo)

---

Top Contributors

[![JusteLeblanc](https://avatars.githubusercontent.com/u/5615054?v=4)](https://github.com/JusteLeblanc "JusteLeblanc (2 commits)")

---

Tags

phpunitphpunit-extensionphpunit-testsphpunitsymfonyperformancetestsClean upfunctional tests

### Embed Badge

![Health badge](/badges/theodo-phpunit-extra/health.svg)

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

###  Alternatives

[dama/doctrine-test-bundle

Symfony bundle to isolate doctrine database tests and improve test performance

1.2k37.2M144](/packages/dama-doctrine-test-bundle)[whatthejeff/nyancat-phpunit-resultprinter

Nyan Cat result printer for PHPUnit

283689.8k24](/packages/whatthejeff-nyancat-phpunit-resultprinter)[aik099/phpunit-mink

Library for using Mink in PHPUnit tests. Supports session sharing between tests in a test case.

72136.2k1](/packages/aik099-phpunit-mink)[phpunit/phpunit-dom-assertions

DOM assertions for PHPUnit

29343.5k11](/packages/phpunit-phpunit-dom-assertions)[janmarek/mockista

Mockista is library for mocking, which I've written, because I find mocking in PHPUnit awful.

29221.0k28](/packages/janmarek-mockista)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)

PHPackages © 2026

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