PHPackages                             qubit05/phpunit-mockfunction - 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. qubit05/phpunit-mockfunction

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

qubit05/phpunit-mockfunction
============================

PHPUnit extension to Mock PHP internal functions using Runkit.

1.0.1(13y ago)135MIT

Since Apr 22Compare

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

READMEChangelogDependenciesVersions (3)Used By (0)

### README not available

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

2

Last Release

4764d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43fdd0e797e431e6fe6121ef1712c92d0f1dcc555cf80b6441dfbc81d88beee5?d=identicon)[qubit05](/maintainers/qubit05)

---

Tags

testingphpunitmockfunctionrunkit

### Embed Badge

![Health badge](/badges/qubit05-phpunit-mockfunction/health.svg)

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

###  Alternatives

[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.2M394](/packages/php-mock-php-mock-phpunit)[php-mock/php-mock

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

36918.1M97](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33412.5M343](/packages/brain-monkey)[donatj/mock-webserver

Simple mock web server for unit testing

1382.5M79](/packages/donatj-mock-webserver)[blastcloud/guzzler

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

272419.3k35](/packages/blastcloud-guzzler)[tcz/phpunit-mockfunction

PHPUnit extension that uses runkit to mock PHP functions (both user-defined and system)

4950.3k2](/packages/tcz-phpunit-mockfunction)

PHPackages © 2026

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