filipgolonka / prophecy-datetime-approximate-token
DateTime approximate token 允许您编写无需考虑1秒问题的规范
0.3
2016-06-08 13:18 UTC
Requires
- phpspec/prophecy: ~1.4
Requires (Dev)
- phpspec/phpspec: ^2.5
This package is not auto-updated.
Last update: 2024-09-14 19:20:03 UTC
README
安装
composer require filipgolonka/prophecy-datetime-approximate-token
用法
示例内部
$collaborator->methodAcceptedDatetime(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();
您还可以使用此令牌为合作者方法接受的日期字符串
$collaborator->methodAcceptedDateString(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();