2008年10月1日星期三

Re: [fw-mvc] How to test action controller method that communicates with external resources.

Hello Емил!

Thanks for reply.

2008/10/1 Емил Иванов / Emil Ivanov <emil.vladev@gmail.com>:
>> If the service is based on Zend_Service_Abstract
>
> If it doesn't - mock the service object that are used.
Indeed it doesn't base on Zend_Service_Abstract?

...But how can I pass that mocked object to the controller?
Can you show me some sample code, based on the one I pasted in my post?

Cheers

没有评论: