Skip to content

Instantly share code, notes, and snippets.

View DarshanKumar89's full-sized avatar

Darshan DarshanKumar89

View GitHub Profile
@DarshanKumar89
DarshanKumar89 / Installation.php
Created August 22, 2014 18:27
Installing PHPUnit On Windows
Assuming you already have PHP and MySQL installed, here’s the steps you need to take:
Install PEAR, a dependency for PHPUnit:
Visit http://pear.php.net/go-pear.phar in your browser and save the file into your PHP directory. This is the folder where you can find php.exe.
Open an administrator command prompt. On Vista or Windows 7, hit your Windows key, type “cmd”, right-click the resulting “cmd.exe” search result, and select “Run as administrator”. Navigate to the folder where you have PHP installed, the same folder where you saved the file in the previous step.
Type the following command to execute the file you just downloaded: php go-pear.phar
After a moment, you should start being prompted for some things. The installer is pretty self-explanatory and I think you want a system installation rather than a local one.