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

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

bizkit/phpunit-function-mock
============================

Provides a simple way to mock built-in PHP functions in PHPUnit tests.

1.x-dev(today)00MITPHP &gt;=8.1

Since Jun 28Compare

[ Source](https://github.com/HypeMC/phpunit-function-mock)[ Packagist](https://packagist.org/packages/bizkit/phpunit-function-mock)[ Docs](https://github.com/HypeMC/phpunit-function-mock)[ RSS](/packages/bizkit-phpunit-function-mock/feed)WikiDiscussions Synced today

READMEChangelogDependencies (1)Versions (1)Used By (0)

### README not available

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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2445045?v=4)[HypeMC](/maintainers/HypeMC)[@HypeMC](https://github.com/HypeMC)

---

Tags

testingphpunitmockMonkey Patchingmock functionsphpunit-extension

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34213.7M442](/packages/brain-monkey)[kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

1.1k1.2M255](/packages/kahlan-kahlan)[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.7M509](/packages/php-mock-php-mock-phpunit)[donatj/mock-webserver

Simple mock web server for unit testing

1392.6M92](/packages/donatj-mock-webserver)[blastcloud/guzzler

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

272451.0k40](/packages/blastcloud-guzzler)[janmarek/mockista

Mockista is library for mocking, which I've written, because I find mocking in PHPUnit awful.

29221.7k28](/packages/janmarek-mockista)

PHPackages © 2026

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