How to write testable code
How to refactor code to make it more testable (and as a bonus SOLID)
Tags: php, unittesting, refactoring