michaelcozzolino/php-redefinitions
最新稳定版本:v0.1.0
Composer 安装命令:
composer require michaelcozzolino/php-redefinitions
包简介
Provides a GitHub repository template for a PHP package with GitHub Actions workflows using standard PHP development tools.
README 文档
README
This package provides a set of redefinitions of native php functions so that they can be mocked in unit tests.
Installation
Run
composer require michaelcozzolino/php-redefinitions
Usage
Every redefinition is included in a specific class whose name is {category}Redefinition where the category is
the name specified in the title where the related functions are documented in php. E.G:
if we go to https://www.php.net/manual/en/ref.json.php, we see JSON Functions, so this means that the redefinitions of
these functions will be in a class called JsonRedefinition, to notice the PascalCase even if the word JSON is
uppercase. So you can find the needed class and inject it in your application.
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-13