teamradhq/testing
最新稳定版本:0.0.2
Composer 安装命令:
composer require teamradhq/testing
包简介
A collection of assertions and helpers to use in testing.
README 文档
README
This package contains a collection of assertions, reflection helpers and other utilities that I use frequently in PHPUnit tests.
composer require --dev teamradhq/testing
Utilities
Helpers
Inspector
A static helper with a that provides a number of methods to inspect and interact with objects using reflection.
Assertion Libraries
ArrayAssertions
Provides some assertions for arrays that can be used to assert partial or complete "sameness".
Tip
Here sameness means that arrays are equal in content regardless of the order of elements.
ObjectAssertions
Use the Inspector to provide a range of assertions for validating objects. It
Tip
Sometimes it just isn't possible to refactor a class to make it more testable using DI or similar techniques. This is where these assertions come in handy. These can either be permanent fixtures in your test library, or can be used to validate the existing behaviour before refactoring.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-11