定制 testo/bridge-mockery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

testo/bridge-mockery

Composer 安装命令:

composer require --dev testo/bridge-mockery

包简介

Mockery bridge for the Testo testing framework.

README 文档

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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固