Adding SimpleTest

We will use the open source unit testing framework for PHP named SimpleTest.

Download the current release of SimpleTest from SourceForge. Save the compressed file anywhere on your hard drive.

The file you just downloaded is compressed. Use a data extraction program to extract the files (I use the open source program 7-Zip).

Place the extracted simpletest folder and its contents inside the PEAR folder of PHP5

The advantage of placing SimpleTest in the PEAR folder is that, in the default installation of Abyss and PHP, the PEAR folder is in the include path. In your test class code, you will need to place the PHP statement:

   require_once('simpletest/unit_tester.php');

If an error message results when you try to view test.php in a browser, use Notepad to open the file "php.ini" found in the PHP5 installation folder. Search for the line that contains "include_path" and change the include line to reference the location of the actual "pear" folder. Note: the semicolon at the start of the line is the comment delimiter. You will need to remove the semicolon.

Next: Installing HTML-Kit