Greets, all --

I've been touching base with Mike Naberezny, who was the first person to
commit code for ZF, and Sebastian Bergmann, author of PHPUnit. Mike's been
developing functionality similar to assertSelect() for his own projects,
and has already handed it off to Sebastian for inclusion in PHPUnit 3.3.

This of course poses a slight issue for ZF, as we don't want conflicting
names; additionally, it's best to leverage PHPUnit where possible.

I'm going to rename the various assertSelect*() assertions to
assertQuery*() in the next day or so to prevent naming and semantic
collisions; we may modify them to utilize PHPUnit's select()
functionality in the future as well. 

When I've done the renaming, I'll post back to the list so that those of
you who have begun writing tests using this functionality can make your
changes.

-- Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote
(on Monday, 30 June 2008, 02:40 PM -0400):
> This morning, I blogged about a new feature for 1.6 that you should
> start looking at: a functional testing scaffold for your MVC
> applications. You can read more about it here:
> 
>     
> http://weierophinney.net/matthew/archives/182-Testing-Zend-Framework-MVC-Applications.html
> 
> The basic idea is that you setup your bootstrapping, and start writing
> test methods. Your test methods would setup the request environment (if
> necessary), dispatch a url, and then make assertions against the final
> environment. No actual web server is required, as the environment is
> encapsulated in the request and response objects.
> 
> This code is in the incubator; please pull via SVN and start testing!

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

Reply via email to