Issues

ZF-6254: Remove Testing related code from Audioscrobbler class by introducing dependency injection for Http Client

Issue Type: Improvement Created: 2009-04-09T10:51:54.000+0000 Last Updated: 2009-04-09T12:02:50.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Benjamin Eberlei (beberlei) Assignee: Benjamin Eberlei (beberlei) Tags: Related issues: Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts