PHPackages                             mockarena/leo-mockarena - 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. mockarena/leo-mockarena

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

mockarena/leo-mockarena
=======================

An extension to Leo for writing assertions with Mockarena

1.2.1(9y ago)010.4kMITPHPPHP &gt;=5.6

Since Jul 15Pushed 9y agoCompare

[ Source](https://github.com/mrkrstphr/leo-mockarena)[ Packagist](https://packagist.org/packages/mockarena/leo-mockarena)[ RSS](/packages/mockarena-leo-mockarena/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

leo-mockarena
=============

[](#leo-mockarena)

[![Builds](https://camo.githubusercontent.com/ae36b50768ef3765b429c737dea0ed506765b2056e6da19510c74e2a90f6ccbe/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d726b7273747068722f6c656f2d6d6f636b6172656e612e7376673f7374796c653d666c61742d737175617265266d61784167653d32353932303030)](https://travis-ci.org/mrkrstphr/leo-mockarena)

> Extends [Leo's](http://peridot-php.github.io/leo/) matcher library with helpers for evaluating [Mockarena](https://github.com/mrkrstphr/mockarena) mocks.

Example
=======

[](#example)

```
it('should add a login_url filter', function () {
    $fn = $this->mocker->mock('add_filter');
    $class = new WPSingleSignOn($this->apiClient->reveal());

    expect($fn)->to->have->been->called(1);
    expect($fn)->calls(0)->to->have->arguments(['login_url', [$class, 'redirectToProvider'], 10, 2]);
});
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~27 days

Total

3

Last Release

3583d ago

### Community

Maintainers

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

---

Top Contributors

[![mrkrstphr](https://avatars.githubusercontent.com/u/164472?v=4)](https://github.com/mrkrstphr "mrkrstphr (14 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mockarena-leo-mockarena/health.svg)

```
[![Health](https://phpackages.com/badges/mockarena-leo-mockarena/health.svg)](https://phpackages.com/packages/mockarena-leo-mockarena)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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