PackageTrack
Sign in Get early access

sanmai/duoclock

PHP time mocking for tests - PSR-20 clock with mockable sleep(), time(), and TimeSpy for PHPUnit testing

0.1.3 6.4M downloads/mo #638 most downloaded on Packagist sanmai/DuoClock

What this package is like to depend on

Last release 8 months ago

26 Dec 2025

Release timing varies

gaps range from 2 weeks to 5 months

Nearly every release is documented

notes for 4 of 4 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

4 releases · first in 2025

2 releases in the last 12 months

see the full history below

Release timeline

4 releases · Jul 2025 to Dec 2025
2026
Release Pre-release

Releases

latest 4
  1. 0.1.3 26 Dec 2025
    Release notes

    What's Changed

    • Add TickerInterface with getStartTick/getEndTick for elapsed time tracking by @sanmai in #20

    Full Changelog: 0.1.2...0.1.3

    Open source →
  2. 0.1.2 26 Dec 2025
    Release notes

    What's Changed

    • ci: add tests for PHP 8.5 by @Chris53897 in #15
    • Add NanoSleeperInterface with time_nanosleep and nanosleep methods by @sanmai in #19

    New Contributors

    Full Changelog: 0.1.1...0.1.2

    Open source →
  3. 0.1.1 28 Jul 2025
    Release notes

    What's Changed

    • Add PSR-20 clock implementation declaration by @sanmai in #2

    New Contributors

    • @sanmai made their first contribution in #2

    Full Changelog: 0.1...0.1.1

    Open source →
  4. 0.1 12 Jul 2025
    Release notes Open source →

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