2009/10/27 David Otton <phpmail@xxxxxxxxxxxxxxxxxxxxxxx>: > If you go with the first approach, you're writing code that you and > anyone who comes after you can write useful tests for. The others, and > you're denying maintenance programmers a useful tool. I should have lead with this: the wikipedia article on Dependency injection http://en.wikipedia.org/wiki/Dependency_injection -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php