New answers tagged zend-framework
One of the primary strengths of DI is that you can inject completely different versions of the dependent services based on your environment. More specifically, in your unit test environment, you can inject a DomainMapper implementation that just returns canned data and does not access the database in any way. You can even vary the DomainMapper instance for ...
Top 50 recent answers are included