PSR-20 Clocks: Testable Time in PHP
PHPUnit
Learn how a ClockInterface helps you decouple time and write stable, testable code.
Practical PHP testing advice, including techniques for testable time using PSR-20 clocks and other testing patterns.