PHPackages                             gsdev/mockery-container - 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. gsdev/mockery-container

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

gsdev/mockery-container
=======================

A mock container that works with the mocking library Mockery

01[1 PRs](https://github.com/gsdevme/MockeryContainer/pulls)PHP

Since Apr 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gsdevme/MockeryContainer)[ Packagist](https://packagist.org/packages/gsdev/mockery-container)[ RSS](/packages/gsdev-mockery-container/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

MockeryContainer
================

[](#mockerycontainer)

This library provides a PSR-11 MockContainer for use in testing environments, along with a PSR-11 Container decorator and Symfony Container

[![Coverage Status](https://camo.githubusercontent.com/ce2d9fba894832e3b897b70913b3c37c6a0db0fe1812308ba10501d69fe26cef/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67736465766d652f4d6f636b657279436f6e7461696e65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/gsdevme/MockeryContainer?branch=master)[![Build Status](https://camo.githubusercontent.com/0053b97a960d4403ba7661fe33d42d64654b271c020be05dde9283c846c9ed44/68747470733a2f2f7472617669732d63692e6f72672f67736465766d652f4d6f636b657279436f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gsdevme/MockeryContainer)

Usage
-----

[](#usage)

- [Basic Usage](docs/basic-usage.md)
- [Symfony](docs/symfony.md)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1
- Mockery &gt;= 9.2

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (13 commits)")

---

Tags

mockeryphppsr-11

### Embed Badge

![Health badge](/badges/gsdev-mockery-container/health.svg)

```
[![Health](https://phpackages.com/badges/gsdev-mockery-container/health.svg)](https://phpackages.com/packages/gsdev-mockery-container)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

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

14429.2M352](/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)
