PHPackages                             testo/bridge-mockery - 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. testo/bridge-mockery

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

testo/bridge-mockery
====================

Mockery bridge for the Testo testing framework.

0.1.2(2w ago)04.3k↓45.6%3BSD-3-ClausePHPPHP &gt;=8.2

Since Jul 3Pushed 1mo agoCompare

[ Source](https://github.com/php-testo/bridge-mockery)[ Packagist](https://packagist.org/packages/testo/bridge-mockery)[ Fund](https://boosty.to/roxblnfk)[ RSS](/packages/testo-bridge-mockery/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelogDependencies (10)Versions (3)Used By (3)

 [![TESTO](https://github.com/php-testo/.github/raw/1.x/resources/logo-full.svg?raw=true)](https://github.com/php-testo/testo)

Mockery bridge

[![Documentation](https://camo.githubusercontent.com/581efe41679650c23bfc15e13cea47cde8aa70c0d5eb32ae469ed9765028674a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d626c75653f7374796c653d666f722d7468652d6261646765266c6f676f3d676974626f6f6b266c6f676f436f6c6f723d7768697465)](https://php-testo.github.io)[![Support on Boosty](https://camo.githubusercontent.com/eca37b381ee1cc5abb7bbc819eb3792929666505c31ebc775962992648d00b92/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f7374796c653d666f722d7468652d6261646765266c6162656c3d266d6573736167653d53706f6e736f7273686970266c6f676f3d426f6f737479266c6f676f436f6c6f723d776869746526636f6c6f723d253233463135463243)](https://boosty.to/roxblnfk)

Important

🪞 This is a read-only mirror.
-----------------------------

[](#-this-is-a-read-only-mirror)

Active development of the Testo project lives in [**php-testo/testo**](https://github.com/php-testo/testo) under `bridge/mockery/`. This repository is **automatically synchronized** from there on every release.

File issues and pull requests in the [main monorepo](https://github.com/php-testo/testo/issues), not here.

About
-----

[](#about)

Automatic [Mockery](https://github.com/mockery/mockery) teardown for Testo. Register `MockeryPlugin` and `\Mockery::close()` is called in a `finally` block after every test, so mock expectations are always verified and the Mockery container is cleared between tests — no per-test teardown boilerplate.

```
// testo.php
use Testo\Application\Config\ApplicationConfig;
use Testo\Application\Config\SuiteConfig;
use Testo\Bridge\Mockery\MockeryPlugin;

return new ApplicationConfig(
    plugins: [new MockeryPlugin()],
    suites:  [new SuiteConfig(name: 'Unit', location: ['tests/Unit'])],
);
```

Install
-------

[](#install)

```
composer require --dev testo/bridge-mockery
```

[![PHP](https://camo.githubusercontent.com/f18a9276b4b8a85043475df15f67c81a1fc4ea0327ea5e653d01e89018070d88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746573746f2f6272696467652d6d6f636b6572792e7376673f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://packagist.org/packages/testo/bridge-mockery)[![Latest Version on Packagist](https://camo.githubusercontent.com/b39475b33e34756c2d44ff8547c27370c8290e6ca23b4230ad839122ef8c217e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746573746f2f6272696467652d6d6f636b6572792e7376673f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374)](https://packagist.org/packages/testo/bridge-mockery)[![License](https://camo.githubusercontent.com/6349f063f5e3ad04cbff941e2b9f56045ad51bd84c64c31896c2bd4cfb599878/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746573746f2f6272696467652d6d6f636b6572792e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-testo/testo/blob/1.x/LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/fdbb273d9743997649ffddcf421d12fa49c489ecd3453aab06aa7f9d88ec02f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746573746f2f6272696467652d6d6f636b6572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/testo/bridge-mockery/stats)

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance93

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

15d ago

Major Versions

0.1.2 → 1.x-dev2026-08-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/110fa17dca123e71e4ef4132d1d6a66d20058a07fc6118e716dd67dd4316e886?d=identicon)[roxblnfk](/maintainers/roxblnfk)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

testingmockerymocktesto

### Embed Badge

![Health badge](/badges/testo-bridge-mockery/health.svg)

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k536.9M28.6k](/packages/mockery-mockery)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k43.6M46.0k](/packages/orchestra-testbench)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34315.0M596](/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.3M117](/packages/php-mock-php-mock-mockery)[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1448.2M273](/packages/polishsymfonycommunity-symfony-mocker-container)[polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

26253.8k4](/packages/polishsymfonycommunity-symfony2-mocker-extension)

PHPackages © 2026

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