Download the PHP package arth/time-machine without Composer
On this page you can find all versions of the php package arth/time-machine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package time-machine
TimeMachine
Module for application time control for testing purpose.
Usage:
composer req arth/time-machine
- replace all
new DateTime('now')
and analogues withArth\Utils\TimeMachine::getInstance()->getNow()
- in tests call
Arth\Utils\TimeMachine::getInstance()->setNow($dt)
with necessary $dt object for time shift.
Changelog
v1.0.0
- getNow()/setNow(DateTimeInterface)
- setFreezedMode(bool) - is time tick between getNow() calls?
- date2ts(DateTimeInterface)/ts2date($ts) with correct microseconds handling
All versions of time-machine with dependencies
PHP Build Version
Package Version
No informations.
The package arth/time-machine contains the following files
Loading the files please wait ....