, , , , , ,

Prerequisite: Make sure path_to_lampp/bin and path_to_lampp/lib/php is writable

  1. Go to path_to_lampp/bin if it’s in your classpath or if pear script of lampp is not in your classpath
  2. pear update-channels
  3. pear config-set auto_discover 1
  4. pear channel-discover pear.phpunit.de
  5. pear install pear.phpunit.de/PHPUnit

That’s it. To verify, check path_to_lampp/bin/phpunit if it’s created.