ZF-6254: Remove Testing related code from Audioscrobbler class by introducing dependency injection for Http Client
Description
Currently the Http client for the audioscrobbler service is set hardcoded inside the constructor.
A testing mode is included to be able to unit-test the audioscrobbler service, because through the hard dependency the Mock Client cannot be used.
This can easily be solved by introducing a setHttpClient function on the audioscrobbler service.
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-04-09T12:02:44.000+0000
Fixed