PHPUnit 4 on Windows 7

  1. Download phpunit.phar from - http://phpunit.de/
  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:
    @ECHO OFF
    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.

Comments

Popular posts from this blog

Enable pgpass under Windows 7

Numeric Drop-down With PHP ranges