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

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

avris/function-mock
===================

Lightweight class for mocking global functions

v1.0.1(8y ago)0322MITPHP ^7.0

Since Dec 21Compare

[ Source](https://gitlab.com/Avris/FunctionMock)[ Packagist](https://packagist.org/packages/avris/function-mock)[ Docs](https://avris.it)[ RSS](/packages/avris-function-mock/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://gitlab.com/Avris/FunctionMock).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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 ~19 days

Total

2

Last Release

3047d ago

### Community

Maintainers

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

---

Tags

testmockfunctionDoubleglobal function

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[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.1M98](/packages/php-mock-php-mock)[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)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33412.5M350](/packages/brain-monkey)[php-mock/php-mock-mockery

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

392.1M96](/packages/php-mock-php-mock-mockery)

PHPackages © 2026

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