slope-it/clock-mock
A library for mocking current date and time in tests.
0.5.0
2.1M downloads/mo
#3152 most downloaded on Packagist
slope-it/clock-mock
What this package is like to depend on
Last release 1 years ago
24 Mar 2025
Ships unpredictably
gaps range from 1 weeks to 1.6 years
Most releases are documented
notes for 10 of 15 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
15 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
15 releases · May 2021 to Mar 2025Releases
latest 15-
0.5.024 Mar 2025Release notes
Open source →What's Changed
- Fixed implicit nullability, which was deprecated in PHP 8.4 by @zonuexe in #45
- Add tests for PHP 8.3 and 8.4, drop 7.4 support as we're not able to verify it anymore. by @asprega in #46
New Contributors
Full Changelog: 0.4.0...0.5.0
-
0.4.021 Aug 2023Release notes
Open source →What's Changed
- feat: allow phpunit 10 by @Chris53897 in #40
- chore: fix ci deprecations by @Chris53897 in #41
- fix create from format with invalid format by @niko-38500 in #42
New Contributors
- @Chris53897 made their first contribution in #40
- @niko-38500 made their first contribution in #42
Full Changelog: 0.3.8...0.4.0
-
0.3.819 May 2023 -
0.3.719 May 2023 -
0.3.605 Apr 2023 -
0.3.509 Feb 2023 -
0.3.422 Nov 2022Release notes
Open source →What's Changed
- Issue #26: fix mocked \DateTime when constructed with absolute string and a specified timezone by @asprega in #28
Full Changelog: 0.3.3...0.3.4
-
0.3.314 Oct 2022 -
0.3.208 Aug 2022Release notes
Open source →What's Changed
- Reset methods createFromFormat after ClockMock::reset() by @faille76 in #21
- Fix createFromFormat with
nowformat by @faille76 in #23
New Contributors
Full Changelog: 0.3.1...0.3.2
-
0.3.120 Jun 2022 -
0.3.029 May 2022Nothing published for this version
-
0.2.204 Apr 2022Nothing published for this version
-
0.2.125 Mar 2022Nothing published for this version
-
0.2.024 May 2021Nothing published for this version
-
0.1.023 May 2021Nothing published for this version