Skip to content

Releases: mcustiel/mockable-datetime

Version 2.0

10 Apr 20:38

Choose a tag to compare

  • 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

10 Apr 20:09

Choose a tag to compare

There was a missing heading backslash when using TimeZone class.

Bugfix

26 Mar 12:20
f1e6646

Choose a tag to compare

v1.1.1

Update DateTime.php

Support constructor arguments

26 Mar 11:57
cfabbcf

Choose a tag to compare

Support constructor arguments for fixed dates type.

First functional version

25 May 07:16

Choose a tag to compare

  • 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.