PHPackages                             nopolabs/mock-with-expectations - 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. nopolabs/mock-with-expectations

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

nopolabs/mock-with-expectations
===============================

Helper trait for phpunit testing

v2.1.2(7y ago)0487MITPHP &gt;=7.1

Since May 16Compare

[ Source](https://github.com/nopolabs/mock-with-expectations)[ Packagist](https://packagist.org/packages/nopolabs/mock-with-expectations)[ RSS](/packages/nopolabs-mock-with-expectations/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (4)Versions (9)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/nopolabs/mock-with-expectations).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Recently: every ~0 days

Total

8

Last Release

2664d ago

Major Versions

1.1.1 → 2.0.02019-03-13

PHP version history (2 changes)1.0.2PHP &gt;=7.0

1.1.1PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/815864?v=4)[Dan Revel](/maintainers/nopolabs)[@nopolabs](https://github.com/nopolabs)

---

Top Contributors

[![nopolabs](https://avatars.githubusercontent.com/u/815864?v=4)](https://github.com/nopolabs "nopolabs (14 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nopolabs-mock-with-expectations/health.svg)

```
[![Health](https://phpackages.com/badges/nopolabs-mock-with-expectations/health.svg)](https://phpackages.com/packages/nopolabs-mock-with-expectations)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k129.9M916](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M39.0k](/packages/orchestra-testbench)[drupal/core-dev

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

2022.0M322](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30300.1k6](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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