NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3111 most downloaded on Packagist
A library for mocking current date and time in tests.
Latest stable
0.5.0
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 1.6 years
Nearly every release is documented
notes for 14 of 15 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
15 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Fixed implicit nullability, which was deprecated in PHP 8.4 by @zonuexe in https://github.com/slope-it/clock-mock/pull/45
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.4.0...0.5.0
chore: fix ci deprecations by @Chris53897 in https://github.com/slope-it/clock-mock/pull/41
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.8...0.4.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixes #37: support non canonical timezones in mocks by @asprega in https://github.com/slope-it/clock-mock/pull/39
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.7...0.3.8
Add support to php 8.2 and use PHPUnit 10.0 by @asprega in https://github.com/slope-it/clock-mock/pull/38
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.6...0.3.7
34: Fix datetimeimmutable not respecting timezone type by @holmberd in https://github.com/slope-it/clock-mock/pull/35
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.5...0.3.6
Fixes #31: Constructing a DateTime with an empty string generates an exception by @asprega in https://github.com/slope-it/clock-mock/pull/32
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.4...0.3.5
Issue #26: fix mocked \DateTime when constructed with absolute string and a specified timezone by @asprega in https://github.com/slope-it/clock-mock/p
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.3...0.3.4
Fix microtime(false) return value format by @ximarx in https://github.com/slope-it/clock-mock/pull/25
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.2...0.3.3
Reset methods createFromFormat after ClockMock::reset() by @faille76 in https://github.com/slope-it/clock-mock/pull/21
now format by @faille76 in https://github.com/slope-it/clock-mock/pull/23Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.1...0.3.2
Handle 'U' format in createFromFormat. by @Elemecca in https://github.com/slope-it/clock-mock/pull/19
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.3.0...0.3.1
Add mock for strftime and gmstrftime by @bailey-spencer in https://github.com/slope-it/clock-mock/pull/12
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.2.2...0.3.0
Fix to wrong time when a DateTime with a specific timezone is created while ClockMock is active by @lfmimo in https://github.com/slope-it/clock-mock/p
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.2.1...0.2.2
Add gmdate mock and refactor mocks with their own private methods by @asprega in https://github.com/slope-it/clock-mock/pull/3
Full Changelog: https://github.com/slope-it/clock-mock/compare/0.2.0...0.2.1
Add a few more function mocks: - strtotime() - getdate() - gmdate() - localtime() - date_create() - date_create_immutable()
Add a few more function mocks:
Nothing published for this version
One column per quarter.