Dependency Injections
Dependency Injections When creating PHP classes, particulary when utilising Unit tests, its a good idea to use dependancy injections. This enables us to use a robust reliable class which is not hard coded to rely (depend) on certain factors. If you were to use the Zend_Mail_Service in your class, it would work fine, but we [...]