All Questions
Tagged with service-locator zend-framework
2 questions
1
vote
1
answer
124
views
How far do I, or can I take TDD tests with Service Objects?
In writing PHPSPEC tests for a Zend Framework 2 application, I'm left wondering how far to 'dig'. Consider this very simple case:
A DomainService (Domain in the URL sense of the word) should be ...
1
vote
1
answer
1k
views
Is this a good service locator, and is this service locator pattern(?) OK?
I'm working in Zend framework 1 and was using Zend_Registry to store objects so that I could replace them in my controllers while unit testing:
$auth = Zend_Registry::get('Auth'); // set in Bootstrap....