News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Stoyan Stefanov's Blog: The PHP QC presentation featured on Slideshare's homepage

Tony Bibbs' Blog: HOWTO: Deploy Your Application Using PEAR

Bob Majdak's Blog: Compile That PHP-GTK2, and More

DevShed: Working with MySQL Result Sets and the Decorator Pattern in PHP

Job Posting: Digicraft Productions Seeks Web Designer/Developer (Orlando, FL)


Community Events







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


releases release zendframework ajax code zend book PHP5 application example job security database conference package cakephp PEAR framework mysql developer

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