filipgolonka / prophecy-datetime-approximate-token
DateTime approximate token allows you to write specs without 1second problem
Package info
github.com/filipgolonka/prophecy-datetime-approximate-token
pkg:composer/filipgolonka/prophecy-datetime-approximate-token
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: 2026-03-01 03:47:59 UTC
README
Installation
composer require filipgolonka/prophecy-datetime-approximate-token
Usage
Inside some example:
$collaborator->methodAcceptedDatetime(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();
You can also use this token for collaborator method accepted date string:
$collaborator->methodAcceptedDateString(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();