-- Federico Cargnelutti <[EMAIL PROTECTED]> wrote
(on Monday, 09 June 2008, 03:00 PM +0100):
> 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. Create your filesystem layout. Rails has been heavily
> promoting unit testing with great results.
>
> What do you think?
Actually, we have some initiatives in place now that _are_ encouraging
unit testing. First, we have approved (or are about to approve) a
revised directory layout:
http://framework.zend.com/wiki/display/ZFPROP/Zend+Framework+Default+Project+Structure+-+Wil+Sinclair
You will see in the proposed default application layout a 'tests'
directory at the top-level.
Additionally, I've been working on a functional testing framework for
MVC apps, building on PHPUnit:
http://framework.zend.com/wiki/display/ZFPROP/Zend_Controller+Testing+Infrastructure
This work is actually mostly complete (except for documentation and one
or two CSS selector use cases), and can be found in a branch of the
repo:
http://framework.zend.com/svn/framework/standard/branches/user/matthew/
We very much encourage developers to unit test and functional test their
applications to ensure quality.
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/