filipgolonka / prophecy-datetime-approximate-token
DateTime approximate token allows you to write specs without 1second problem
Installs: 14 572
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- phpspec/prophecy: ~1.4
Requires (Dev)
- phpspec/phpspec: ^2.5
This package is not auto-updated.
Last update: 2025-01-18 21:52:31 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();