Install PHPUnit to work with NetBeans in Windows

phpunit-logo-300x267PHPUnit is the de-facto standard for unit testing in PHP projects. It provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.

  1. Install PEAR
    1. Download go-pear.phar
    2. Run
      php go-pear.phar
  2. Install PHPUnit
    1. If using a local installation, we should use pear.bat instead of pear
    2. pear clear-cache
      pear install -a -f phpunit/PHPUnit
  3. Install PHPUnit-SkeletonGenerator 
    pear install phpunit/PHPUnit_SkeletonGenerator
  4. Configure and check with NetBeans

Discussion

Leave a Reply