Tuesday, April 12, 2011

Automated Test cases in PHP

Yesterday I had a discussion with my new Project Lead Mr. Akilan T, I came to know this information.
If we are ready to follow Extreme Programing guidelines, we should define proper test cases before starting coding part. Not only testing but also developers should involve in writing test cases. Being a developer, I know the difficulties in writing test cases being a developer prospective. To overcome this overhead process we can make use automated tools for writing these test cases.

PHPUnit provides a framework for creating a test suite to automate testing of functions and classes. While writing a class file we should extend "PHPUnit_TestCase" class and move forward. From this extended class we can send testing data and also we can get defined test cases after executing the class file.
For more information about this framework please go through the URL: http://pear.php.net/manual/en/package.php.phpunit.php

No comments:

Post a Comment