-- Eric Marden <[EMAIL PROTECTED]> wrote
(on Monday, 09 June 2008, 02:01 PM -0400):
> Would you call them mocks or fixtures? Does either term infer a
> particular testing framework over another? What support does ZF have,
> natively, for PHPUnit2 or SimpleTest (the two leading testing
> frameworks)?

ZF is _unit_ tested with PHPUnit (version _3_, for the record; PHPUnit
did not halt development with PHPUnit2 (-;). As noted in a previous
response, I've created test cases and constraints for use in _functional
testing_ of your applications.

Otherwise, testing is left up to the developer. We are fully aware that
there are different unit testing frameworks, and that each offers their
own advantages; my hope is that the work I've done on the controller
test cases and constraints will serve as a blueprint for others to
develop similar functionality for other testing frameworks (such as
SimpleTest, phpt, etc.).


> On 6/9/08 10:00 AM, "Federico Cargnelutti" <[EMAIL PROTECTED]> wrote:
> 
> 
>     By reading the manual, it doesn't look like ZF is encouraging users to do
>     unit testing. I know that it's up to the developer to worry about this, 
> but
>     shouldn't the ZF encourage developers to test their classes? I'm not
>     talking about developing a unit testing framework or anything like that,
>     you can communicate this by just adding:
> 
>     test/
>         mocks/
>         unit_tests/
> 
>     to the manual: 7.1.2.1 <http://7.1.2.1> . Create your filesystem layout.
>     Rails has been heavily promoting unit testing with great results.
> 
>     What do you think?

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to