PSR-20 Clocks: Testable Time in PHP
PHPUnit
Learn how a ClockInterface helps you decouple time and write stable, testable code.
Learn how a ClockInterface helps you decouple time and write stable, testable code.
How to replace your mocked event dispatchers with a real one, and why.
Save yourself from (re)creating difficult objects for simple assertions.
Composition over inheritance by using traits; but how can you test these traits in more complex use cases?