2008年10月1日星期三

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

> If the service is based on Zend_Service_Abstract

If it doesn't - mock the service object that are used.
Read
http://www.phpunit.de/pocket_guide/3.3/en/mock-objects.html
about how to mock objects.

--
My place to share my ideas:
http://vladev.blogspot.com
http://carutoo.com

没有评论: