承接 nunomaduro/mock-final-classes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nunomaduro/mock-final-classes

最新稳定版本:v1.2.0

Composer 安装命令:

composer require nunomaduro/mock-final-classes

包简介

Allows mocking of final methods and classes in PHP.

README 文档

README

Mock final classes example

Build Status Total Downloads Latest Version License

Created by, and is maintained by Nuno Maduro, and once installed it automatically allows mocking of final methods and classes.

💡 Installation & Usage

Requires PHP 7.1+

First, install the package using Composer:

composer require --dev nunomaduro/mock-final-classes

That's it! You can now mock final methods and classes. 🏄‍♂️

🤯 How it works?

  1. First, we run the file autoload.php using Composer Autoload.
  2. Then, we determine if you are running a supported test framework
  3. Then, we use the library dg/bypass-finals to remove final keywords from source code on-the-fly: https://github.com/nunomaduro/mock-final-classes/src/Runner.php#L31.

👏🏻 Credits

Most of the work is done by the library dg/bypass-finals, so make sure you support the maintainer here: Donate. Thank you!

Mock Final Classes is an open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 111
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-05