brain/monkey
Composer 安装命令:
composer require --dev brain/monkey
包简介
Mocking utility for PHP functions and WordPress plugin API
关键字:
README 文档
README
Brain Monkey
Brain Monkey is a tests utility for PHP.
It provides two set of helpers:
- the first are framework-agnostic tools that allow to mock (or monkey patch) and to test behavior of any PHP function
- the second are specific to WordPress and make unit testing of WordPress extensions a no-brainer.
Requirements
- PHP 7.2+
- Composer to install
Via Composer following packages are required:
- mockery/mockery version 1 (BSD-3-Clause)
- antecedent/patchwork version 2 (MIT)
When installed for development, following packages are also required:
- phpunit/phpunit version 8.5 or higher (BSD-3-Clause)
License
Brain Monkey is open source and released under MIT license. See LICENSE file for more info.
Question? Issues?
Brain Monkey is hosted on GitHub. Feel free to open issues there for suggestions, questions and real issues.
Who's Behind
I'm Giuseppe, I deal with PHP since 2005. For questions, rants or chat ping me on Twitter (@gmazzap) or on "The Loop" (Stack Exchange) chat.
Well, it's possible I'll ignore rants.
brain/monkey 适用场景与选型建议
brain/monkey 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 14.09M 次下载、GitHub Stars 达 339, 最近一次更新时间为 2015 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「test」 「mockery」 「mock」 「runkit」 「redefinition」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 brain/monkey 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 brain/monkey 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 brain/monkey 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Behat extension for mocking services defined in the Symfony2 dependency injection container.
Loads dependencies to mocked classes by Mockery for Nette Framework.
Testing Suite For Lumen like Laravel does.
WpBridge is a simple bridge to mock all wordpress function.
Shorthand for creating mock objects
The PHP SDK for Checkmango
统计信息
- 总下载量: 14.09M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 344
- 点击次数: 37
- 依赖项目数: 406
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-21