ascii-soup/hamcrest-callback-matcher
最新稳定版本:1.1
Composer 安装命令:
composer require ascii-soup/hamcrest-callback-matcher
包简介
Hamcrest matcher that matches against a provided callback.
README 文档
README
Usage:
assertThat("hello", matchesUsing(function($value) { return $value === "hello"; }));
Creating new custom matchers
Creating new custom matchers is made simpler with the callback matcher.
You can use describedAs() to provide a better description for the expectation.
function myCustomMatcher() { return describedAs('a custom value', new CallbackMatcher( function($value) { return $value === 'my custom value'; } ) }
统计信息
- 总下载量: 6.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-16