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

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

clippings/phpunit-extensions
============================

Additional assertions and constraints for PHPUnit

0.1.0(11y ago)01831BSD-3-ClausePHP

Since Jun 5Pushed 9y agoCompare

[ Source](https://github.com/clippings/phpunit-extensions)[ Packagist](https://packagist.org/packages/clippings/phpunit-extensions)[ RSS](/packages/clippings-phpunit-extensions/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

PHPUnit Extensions
==================

[](#phpunit-extensions)

[![Build Status](https://camo.githubusercontent.com/0db5348162396c0f06afe74200e73aeae8ed0563276b96136f0b351be661fe8f/68747470733a2f2f7472617669732d63692e6f72672f636c697070696e67732f706870756e69742d657874656e73696f6e732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/clippings/phpunit-extensions)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/28c4f2ebc5be482c5368c1dfb0a254ee14dfcf42cc7c91a9ff823a839e140e24/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f706870756e69742d657874656e73696f6e732f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/clippings/phpunit-extensions/)[![Code Coverage](https://camo.githubusercontent.com/755e21735e6088d22d4ecde4e9b2ba76ea20b1a891b918454c26bdee9dbc0d1f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636c697070696e67732f706870756e69742d657874656e73696f6e732f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/clippings/phpunit-extensions/)[![Latest Stable Version](https://camo.githubusercontent.com/acb9fd08e877bd74b57b58d7598437d1f7f7bb36bdf0d57a7bfd2a20f9eae805/68747470733a2f2f706f7365722e707567782e6f72672f636c697070696e67732f706870756e69742d657874656e73696f6e732f762f737461626c652e706e67)](https://packagist.org/packages/clippings/phpunit-extensions)

Additional assertions and constraints for PHPUnit

Usage
-----

[](#usage)

`assertArrayConstrained` - is used to have a constriant for each entry in an array

```
use CL\PHPUnitExtensions\Constraint\ConstrainArray;

class ExampleTest extends PHPUnit_Framework_TestCase
{
    use ConstrainArrayTrait;

    public function testTest()
    {
        $this->assertArrayConstrained(
            array('test' => $this->equalTo('12')),
            array('test' => 12)
        );
    }
}
```

License
-------

[](#license)

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

4365d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

![](https://avatars.githubusercontent.com/u/745771?v=4)[Filip Georgiev](/maintainers/phgeorgiev)[@phgeorgiev](https://github.com/phgeorgiev)

![](https://avatars.githubusercontent.com/u/490439?v=4)[Zdravko Evstatiev](/maintainers/zedevs)[@zedevs](https://github.com/zedevs)

---

Top Contributors

[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (6 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (1 commits)")

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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