Releases: mcustiel/mockable-datetime
Releases · mcustiel/mockable-datetime
Version 2.0
- Improvements in code: now everything is in one utility class which sets the mocks and returns the mocked php date.
- Added creation of DateTImeImmutable objects.
- Improved behavior of Offset mode. Now it starts counting from the moment the mock is setup.
- Using php DateTIme objects to set the mock, no timestamp.
Bug fix: TimeZone from root
There was a missing heading backslash when using TimeZone class.
Bugfix
Support constructor arguments
Support constructor arguments for fixed dates type.
First functional version
- Added DateTimeUtils class with methods to set fixed, system and offset-based datetimes.
- Added DateTime class with a method to return PHP \DateTime class based in DateTimeUtils configuration.