PHPackages                             potherca/phpunit-mock-function - 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. potherca/phpunit-mock-function

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

potherca/phpunit-mock-function
==============================

Trait that allows mocking functions in PhpUnit testcase.

v0.3.3(9y ago)02.1k2GPL-3.0PHP

Since May 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/potherca-blog/phpunit-mock-function)[ Packagist](https://packagist.org/packages/potherca/phpunit-mock-function)[ RSS](/packages/potherca-phpunit-mock-function/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)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/potherca-blog/phpunit-mock-function).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~2 days

Total

6

Last Release

3318d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/195757?v=4)[Ben Peachey](/maintainers/potherca)[@Potherca](https://github.com/Potherca)

---

Top Contributors

[![Potherca](https://avatars.githubusercontent.com/u/195757?v=4)](https://github.com/Potherca "Potherca (36 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (2 commits)")[![CodeLingoBot](https://avatars.githubusercontent.com/u/45469328?v=4)](https://github.com/CodeLingoBot "CodeLingoBot (1 commits)")

---

Tags

mockmock-functionmockingmocking-libraryphpphpunitphpunit-extensionphpunit-mockphpunit-utiltrait

### Embed Badge

![Health badge](/badges/potherca-phpunit-mock-function/health.svg)

```
[![Health](https://phpackages.com/badges/potherca-phpunit-mock-function/health.svg)](https://phpackages.com/packages/potherca-phpunit-mock-function)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k955.1M153.3k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k935.9M1.7k](/packages/phpunit-php-code-coverage)[brianium/paratest

Parallel testing for PHP

2.5k136.1M960](/packages/brianium-paratest)[drupal/core-dev

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

2022.6M338](/packages/drupal-core-dev)[webmozarts/strict-phpunit

Enables type-safe comparisons of objects in PHPUnit

30314.4k7](/packages/webmozarts-strict-phpunit)

PHPackages © 2026

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