1. According to the official PHPUnit manual, the installation of PHPUnit requires these extensions: DOM,JSON,PCRE,REFLECTION,SPL, if you are installing a wampserver environment, these extensions are turned on by default.
2. Configure PHP environment variables, how to configure, their own Baidu
3. Download PHPUnit, (official), download the corresponding PHPUnit version according to your own version, my PHP here is 5.5, so I downloaded the 4.8 version of the PHPUnit
4. After download, rename the download file to Phpunit.phar and put it in any directory, and I'll put it in the F:/phpunit directory.
5. Configure the environment variables to configure the F:/phpunit to the environment variables.
6. Inside the cmd, enter into the F:/phpunit, you are the directory of your own, entered into their corresponding directory
7. Enter
Echo " %~dp0phpunit.phar " %* > Phpunit.cmd
Carriage return, and then enter PHPUnit--version if the PHPUnit 4.8.28 by Sebastian Bergmann and contributors appear. That means the installation was successful!
In fact, as with composer installation, put the Phar file in an environment variable directory, in the creation of a bat file, run the command is, let the bat file, run Phar.
Ext: 53183321
Reference: http://www.phpunit.cn/getting-started.html
Https://phpunit.de/manual/5.7/zh_cn/installation.html#installation.phar.windows
PHPUnit installation under Windows