PHPackages                             linepogl/phpunit-meta-constraints - 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. linepogl/phpunit-meta-constraints

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

linepogl/phpunit-meta-constraints
=================================

A PHPUnit extension with advanced constraints.

1.1.0(2w ago)02.8k↓71.7%2MITPHPPHP ^8.4CI passing

Since Sep 7Pushed 2w agoCompare

[ Source](https://github.com/linepogl/phpunit-meta-constraints)[ Packagist](https://packagist.org/packages/linepogl/phpunit-meta-constraints)[ Docs](https://github.com/linepogl/phpunit-meta-constraints)[ RSS](/packages/linepogl-phpunit-meta-constraints/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (9)Versions (13)Used By (2)

PHPUnit Meta Constraints
========================

[](#phpunit-meta-constraints)

A PHPUnit extension with enhanced constraints.

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

[](#installation)

```
composer require linepogl/phpunit-meta-constraints --dev
```

Optionally, you can include the helper trait in your test cases:

```
final class MyTestCase extends TestCase
{
    use PHPUnitMetaConstraintsTrait;
    ...
}
```

### Constraints refererce

[](#constraints-refererce)

- [Is](doc/is.md)
- [IsLike](doc/is_like.md)
- [IteratesLike](doc/iterates_like.md)
- [Throws](doc/throws.md)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance97

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

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 ~25 days

Recently: every ~31 days

Total

12

Last Release

16d ago

Major Versions

0.5.1 → 1.0.02026-03-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/4856eaded9e307750ff4ad555c4494390c5ece8ac7bd6fe496f8e0354d848880?d=identicon)[linepogl](/maintainers/linepogl)

---

Top Contributors

[![linepogl](https://avatars.githubusercontent.com/u/464549?v=4)](https://github.com/linepogl "linepogl (37 commits)")

---

Tags

phpunitconstraint

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/linepogl-phpunit-meta-constraints/health.svg)

```
[![Health](https://phpackages.com/badges/linepogl-phpunit-meta-constraints/health.svg)](https://phpackages.com/packages/linepogl-phpunit-meta-constraints)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M985](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69619.8M640](/packages/spatie-phpunit-snapshot-assertions)[lchrusciel/api-test-case

Perfect PHPUnit TestCase for JSON/XML API TDD with Symfony.

4125.9M75](/packages/lchrusciel-api-test-case)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1499.9M107](/packages/ergebnis-phpunit-slow-test-detector)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)[allure-framework/allure-phpunit

Allure PHPUnit integration

6913.4M46](/packages/allure-framework-allure-phpunit)

PHPackages © 2026

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