Writing Testable Code
Having problems writing tests for code? Not sure how to start writing tests? Testable code follows specific patterns, principles, and practices to make it testable. We will cover Dependency Injection (DI), decoupling, mocking, and other code architecture techniques to make your code easier to write tests for. Common problem areas with practical solutions will be discussed, including race conditions, timing, dynamic data, databases, and external dependencies.
Up Next from PHP Tek 2025
Domain Driven PHP
Christopher Miller · Standard (50 minutes)
Extending the PHP language with PHP
Dave Liddament · Standard (50 minutes)
Scaling Your Database: A Real-World Journey from Millions to Billions
TJ Miller · Standard (50 minutes)
Passing the Code Torch: A Father and Son’s Story of Teaching, Failing, and Laughing in Tech
Easton Meth · Standard Session (45-60 minutes)