PHPUnit installation under Windows

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.