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(8y ago)02.1kGPL-3.0

Since May 19Compare

[ 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 Synced 2mo 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3272d ago

### Community

Maintainers

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

### 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

[codeception/codeception

All-in-one PHP Testing Framework

4.9k86.2M2.9k](/packages/codeception-codeception)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3513.9M32](/packages/jasonmccreary-laravel-test-assertions)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)

PHPackages © 2026

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