PHPackages                             olvlvl/phpunit-given - 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. olvlvl/phpunit-given

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

olvlvl/phpunit-given
====================

An alternative to PHPUnit's ReturnValueMap and ReturnCallback. A convenient solution to migrate from Prophecy.

v10.0.0(1y ago)149BSD-3-ClausePHP &gt;=8.1

Since Nov 2Compare

[ Source](https://github.com/olvlvl/phpunit-given)[ Packagist](https://packagist.org/packages/olvlvl/phpunit-given)[ Docs](https://github.com/olvlvl/phpunit-given)[ RSS](/packages/olvlvl-phpunit-given/feed)WikiDiscussions Synced 1mo ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/olvlvl/phpunit-given).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

3

Last Release

562d ago

Major Versions

v9.0.0 → v10.0.02024-11-02

v10.0.0 → 11.0.x-dev2024-11-02

PHP version history (3 changes)v9.0.0PHP &gt;=8.0

v10.0.0PHP &gt;=8.1

11.0.x-devPHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1df6f524f16addf060adbed85034c56ada04a1e66ad429bddc32a2561ab6b57?d=identicon)[olvlvl](/maintainers/olvlvl)

---

Top Contributors

[![olvlvl](https://avatars.githubusercontent.com/u/155998?v=4)](https://github.com/olvlvl "olvlvl (5 commits)")

---

Tags

phpunitmocktest double

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/olvlvl-phpunit-given/health.svg)

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[blastcloud/guzzler

Supercharge your app or SDK with a testing library specifically for Guzzle.

272419.3k35](/packages/blastcloud-guzzler)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.3k13](/packages/lastzero-test-tools)[colinodell/psr-testlogger

PSR-3 compliant test logger based on psr/log v1's, but compatible with v2 and v3 too!

1712.1M47](/packages/colinodell-psr-testlogger)

PHPackages © 2026

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