PHPackages                             eloquent/phpunit-extensions - 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. eloquent/phpunit-extensions

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

eloquent/phpunit-extensions
===========================

Extensions for PHPUnit to provide additional functionality.

2.0.0(12y ago)31.4k[2 issues](https://github.com/eloquent/phpunit-extensions/issues)1MITPHP

Since Aug 29Pushed 12y ago1 watchersCompare

[ Source](https://github.com/eloquent/phpunit-extensions)[ Packagist](https://packagist.org/packages/eloquent/phpunit-extensions)[ Docs](https://github.com/eloquent/phpunit-extensions)[ RSS](/packages/eloquent-phpunit-extensions/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (1)

PHPUnit extensions
==================

[](#phpunit-extensions)

*Extensions for PHPUnit to provide additional functionality.*

[![The most recent stable version is 2.0.0](https://camo.githubusercontent.com/14292701dabbd874c065e08be17dde83a526fb7d21a7874f6d068c1467bc4554/687474703a2f2f696d672e736869656c64732e696f2f3a73656d7665722d322e302e302d627269676874677265656e2e737667 "This project uses semantic versioning")](http://semver.org/)[![Current build status image](https://camo.githubusercontent.com/a376b9e4aff5e7ebd341979390c197e4e805bf9c623482bcd7131df7c71121f1/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f656c6f7175656e742f706870756e69742d657874656e73696f6e732f646576656c6f702e737667 "Current build status for the develop branch")](https://travis-ci.org/eloquent/phpunit-extensions)[![Current coverage status image](https://camo.githubusercontent.com/0ebd353810b742e7577bc074e172f3b2fcd47d538370c4d80af7f696ccff8b08/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f656c6f7175656e742f706870756e69742d657874656e73696f6e732f646576656c6f702e737667 "Current test coverage for the develop branch")](https://coveralls.io/r/eloquent/phpunit-extensions)

Installation and documentation
------------------------------

[](#installation-and-documentation)

- Available as [Composer](http://getcomposer.org/) package [eloquent/phpunit-extensions](https://packagist.org/packages/eloquent/phpunit-extensions).
- [API documentation](http://lqnt.co/phpunit-extensions/artifacts/documentation/api/) available.

Parameterized test cases
------------------------

[](#parameterized-test-cases)

Parameterized test cases allow entire PHPUnit test cases to be run in multiple different configurations. They operate similar to PHPUnit's own [data providers](http://www.phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers), but on a test case level rather than a test method level.

To create a parameterized test case, extend the `ParameterizedTestCase` class instead of `PHPUnit_Framework_TestCase`, and implement the required methods:

```
use Eloquent\Phpunit\ParameterizedTestCase;

class ExampleTest extends ParameterizedTestCase
{
    public function getTestCaseParameters()
    {
        return array(
            array('Ocelot', 'Lapis lazuli', 'Dandelion'),
            array('Sloth', 'Carbon', 'Conifer'),
        );
    }

    public function setUpParameterized($animal, $mineral, $vegetable)
    {
        // set up...
    }

    public function tearDownParameterized($animal, $mineral, $vegetable)
    {
        // tear down...
    }

    public function testSomething()
    {
        // test...
    }
}
```

Every test in the testcase will now be run once for each entry in the `getTestCaseParameters()` method.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~178 days

Total

4

Last Release

4465d ago

Major Versions

1.0.2 → 2.0.02014-02-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/100152?v=4)[Erin](/maintainers/ezzatron)[@ezzatron](https://github.com/ezzatron)

---

Top Contributors

[![ezzatron](https://avatars.githubusercontent.com/u/100152?v=4)](https://github.com/ezzatron "ezzatron (9 commits)")

---

Tags

testingphpunittestextensioncaseparameterized

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eloquent-phpunit-extensions/health.svg)

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

###  Alternatives

[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[albertcht/lumen-testing

Testing Suite For Lumen like Laravel does.

4335.5k1](/packages/albertcht-lumen-testing)

PHPackages © 2026

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