To install PHPUnit:
1. Download and start XAMPP Control Panel
2. Open XAMPP Shell (console icon on the right side) and type:
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
Notes:
To view all packages type: pear list -a
To see PHPUnit help type: phpunit
To see PHPUnit version type: phpunit --version
Your test class needs to extend PHPUnit_Framework_TestCase