wieloco / ps-matcha
为 PhpSpec 定制的匹配器
1.0.0
2020-11-17 10:36 UTC
Requires
- php: >=7.3
- phpspec/phpspec: ^7.0
- ramsey/uuid: ^3.7|^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
README
--
安装
通过 composer 安装此包
composer require wieloco/ps-matcha
将其添加到您的 PhpSpec 配置文件(phpspec.yaml
文件)中
extensions: WieloCo\Matcha\Extension: ~
用法
在规范中像这样使用它
$this->uuid->shouldBeUuid();
或
$this->uuid->shouldNotBeUuid();
许可证
Apache License 2.0 请参阅LICENSE 获取更多信息。