Sunday, June 22, 2014

PHPUnit 4 on Windows 7

  1. Download phpunit.phar from -
  2. Find your php bin directory. In my case it is: C:\Program Files (x86)\Zend\ZendServer\bin
  3. Add this directory to your path.
  4. In the same php bin directory create .bat file with the following content:
    set PHP_BIN=php.exe
    set FILE_PATH="C:\path\to\phpunit_phar_file\phpunit.phar"
    %PHP_BIN% %FILE_PATH% %*
  5. Done. phpunit will be available from any location.

No comments:

Post a Comment