PackageTrack
Sign in Get early access

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 2025
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 15
  1. 0.5.0 24 Mar 2025
    Release notes

    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

    Open source →
  2. 0.4.0 21 Aug 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 0.3.8...0.4.0

    Open source →
  3. 0.3.8 19 May 2023
    Release notes

    What's Changed

    • Fixes #37: support non canonical timezones in mocks by @asprega in #39

    Full Changelog: 0.3.7...0.3.8

    Open source →
  4. 0.3.7 19 May 2023
    Release notes

    What's Changed

    • Add support to php 8.2 and use PHPUnit 10.0 by @asprega in #38

    Full Changelog: 0.3.6...0.3.7

    Open source →
  5. 0.3.6 05 Apr 2023
    Release notes

    What's Changed

    • 34: Fix datetimeimmutable not respecting timezone type by @holmberd in #35

    New Contributors

    Full Changelog: 0.3.5...0.3.6

    Open source →
  6. 0.3.5 09 Feb 2023
    Release notes

    What's Changed

    • Fixes #31: Constructing a DateTime with an empty string generates an exception by @asprega in #32

    Full Changelog: 0.3.4...0.3.5

    Open source →
  7. 0.3.4 22 Nov 2022
    Release notes

    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

    Open source →
  8. 0.3.3 14 Oct 2022
    Release notes

    What's Changed

    • Fix microtime(false) return value format by @ximarx in #25

    New Contributors

    Full Changelog: 0.3.2...0.3.3

    Open source →
  9. 0.3.2 08 Aug 2022
    Release notes

    What's Changed

    • Reset methods createFromFormat after ClockMock::reset() by @faille76 in #21
    • Fix createFromFormat with now format by @faille76 in #23

    New Contributors

    Full Changelog: 0.3.1...0.3.2

    Open source →
  10. 0.3.1 20 Jun 2022
    Release notes

    What's Changed

    • Handle 'U' format in createFromFormat. by @Elemecca in #19

    New Contributors

    Full Changelog: 0.3.0...0.3.1

    Open source →
  11. 0.3.0 29 May 2022

    Nothing published for this version

  12. 0.2.2 04 Apr 2022

    Nothing published for this version

  13. 0.2.1 25 Mar 2022

    Nothing published for this version

  14. 0.2.0 24 May 2021

    Nothing published for this version

  15. 0.1.0 23 May 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive