-- Giorgio Sironi <[email protected]> wrote
(on Tuesday, 17 March 2009, 09:04 PM +0100):
> 2009/3/17 Matthew Weier O'Phinney <[email protected]>
> 
>     -- till <[email protected]> wrote
>     > In general, is Zend_Test ready for "production" yet? I think I pretty
>     > much run into everything that's still being worked on -- e.g.
>     > Zend_Session (static issues), cookie-related, etc.. So far, I'm
>     > pondering to write "regular" unit tests which would involve getting
>     > the pages through a http client and then parsing them with DOM
>     > methods.
> 
>     It's production ready -- I've been using it a ton. The principal issues
>     lie in the framework itself. For instance, we need to add cookie support
>     in the response object, and Zend_Session needs to be refactored to make
>     it easier to test against.
> 
> 
> In my opinion Zend_File (used for uploading) is another component that needs
> refactoring because without patches it cannot be tested.

This, like session management, is an area that's really hard to test,
period, due to how PHP works. The only reasonable solution for use with
Zend_Test_PHPUnit_ControllerTestCase I can come up with is to utilize a
different file upload adapter -- which is problematic without a solution
for dependency injection.

> On the other hand, I've enjoyed using Zend_Test for integration testing of rss
> feeds and ajax requests.

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

Reply via email to