I'm not too fussed about whether the testing is carried out using
Zend_Test or standalone PHPUnit. I'm just trying to be conscientious
about testing; and, since I'm working on a user control module at the
moment, I'm interested in testing Zend_Forms specifically.
Jake McGraw wrote:
On Tue, Jan 5, 2010 at 7:56 PM, Steven Szymczak
<[email protected]> wrote:
I've just started digging deeper into Zend_Form and I'm interested in how to
go about unit testing them. I've looked through the PHPUnit docs,
zf-general archives, and Pádraic Brady's blog (briefly) but haven't found
anything extremely useful. So can anybody here point me in the direction of
any articles that deal with this?
Are you trying to use Zend_Test or just PHPUnit by itself. Personally,
the built in support for PHPUnit and ZF MVC rocks, though, like every
ZF Component, takes a little of work to get started. The best
resources I've found for this are:
Unit Testing with the Zend Framework with Zend_Test and PHPUnit
http://www.zendcasts.com/unit-testing-with-the-zend-framework-with-zend_test-and-phpunit/2009/06/comment-page-1/
I know it's a drag, but really, read every line in the manual, and
work along with the examples:
http://framework.zend.com/manual/en/zend.test.html
- jake
Cheers,
-- Steven
--
スティーブン
--
スティーブン