testo/bridge-mockery
Composer 安装命令:
composer require --dev testo/bridge-mockery
包简介
Mockery bridge for the Testo testing framework.
README 文档
README
Mockery bridge
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2026-07-03