TDD When It Gets Hard: Testing APIs, Databases, and Events in PHP
Scott Keck-Warren • April 24, 2024
Most TDD tutorials teach you to test a class with no dependencies. Then you go back to your actual codebase and run into fun wrinkles like HTTP clients, database queries, event listeners, and the whole thing stops working.
I've watched developers try TDD, hit one of these walls, and decide it "doesn't work for real apps." It does, but the tutorials stop a little too early. This session covers how to do TDD with External APIs, Databases, and event-driven code.
I have presented this at: