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

PHPBuilder.com:
Test Driven Development
Feb 04, 2004 @ 13:08:04

One of the things that gets left out the most when developing code, web or not, is the correct steps of "design, code, test, and debug" to create rock-solid code. But, "suppose we did think about it. Not just made a cursory effort to do it, but actually examine if it is really the right thing to do." In a new article from PHPBuilder.com, they cover just this.

Test Driven Development in PHP they talk about a select part of the process, testing your code with a suite of scripts to help find the bugs. One of the packages that they suggest is the Simple Test for PHP from LastCraft. This script acts as a framework for you to create tests for your specific site by extending its main class. It then reports back the results in an easy to read format. the article goes on to show some sample code to help familiarize you with the testing suite, and and example of what sample error messages might show.

Of course, using something like this isn't the only method for you to use for testing, but it can help make things a bit more solid before you pass it off to the testers...

tagged:

Link:


Trending Topics: