News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Graphical Interfaces and Unit Testing
November 02, 2006 @ 11:57:00

In the final part of their series looking at unit testing in PHP, DevShed has this new tutorial that looks at using graphical interfaces with the unit tests you've already generated. It's another excerpt from the George Schlossnage book "Advanced PHP Programming".

Because PHP is a Web-oriented language, you might want an HTML-based user interface for running your unit tests. PHPUnit comes bundled with this ability, using PHPUnit_WebUI_TestRunner::run(). This is in fact a nearly identical framework to TextUI; it simply uses its own listener to handle generate HTML-beautified output.

He looks at test driven design, a simple "Flesch Score Calculator" class, testing a "Word" class (with PHPUnit), and creating the Bug Report of the output of it all. Finally, he builds up a simple web interface to make running the tests and getting the reports nice and easy.

0 comments voice your opinion now!
tutorial unit test graphical interface phpunit web tutorial unit test graphical interface phpunit web


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Combining Zend Framework2 and Symfony2 components with Composer to build PHP projects

NetTuts.com: Deploy your WordPress Blog to the Cloud

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite

PHPMaster.com: Decoupling Interfaces from Implementation - Using Separated Interfaces

WebDigity.com: PHP geotargeting techniques


Community Events











Don't see your event here?
Let us know!


introduction component unittest security install language code podcast opinion threedevsandamaybe package symfony2 hack facebook composer application framework release series hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework