testo/bridge-mockery

Mockery bridge for the Testo testing framework.

Maintainers

Package info

github.com/php-testo/bridge-mockery

pkg:composer/testo/bridge-mockery

Transparency log

Fund package maintenance!

Boosty

Statistics

Installs: 0

Dependents: 1

Suggesters: 1

Stars: 0

0.1.1 2026-07-03 10:45 UTC

This package is auto-updated.

Last update: 2026-07-03 14:45:56 UTC


README

TESTO

Mockery bridge

Documentation Support on Boosty


Important

🪞 This is a read-only mirror.

Active development of the Testo project lives in 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, not here.

About

Automatic 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

composer require --dev testo/bridge-mockery

PHP Latest Version on Packagist License Total Downloads