PHPUnit Introduction and environment construction of interface Automation Test series

Source: Internet
Author: User

PHPUnit Introduction

PHPUnit is a test framework for PHP programmers, which is a xunit architecture of the unit testing framework.

PHPUnit Environment Construction

Here are two ways to build:

The first type: direct use of the XAMPP, which integrates the PHPUnit

Address: https://www.apachefriends.org/zh_cn/index.html

Help: Http://jingyan.baidu.com/article/dca1fa6fbcd20cf1a5405258.html

The second type:

1, install PHP, and configure the system environment variable path

2, download Phpunit:https://phar.phpunit.de/phpunit.phar after the download to rename, remove the later version number

3, put the Phpunit.phar in the project directory

4, cmd command line, into the project directory, Run command: Echo @php "%~dp0phpunit.phar"%* > Phpunit.cmd can see the production of a phpunit.cmd

5. Close the cmd that was opened before, reopen one, and then enter PHPUnit--version, the result is as follows

PHP Development Tools

Comparative professional can choose Phpstorm, just simple configuration can be used, the specific method of Google for yourself. As a result of my environment, I have written it directly in notepad++.

Data acquisition

Subsequent code can be obtained by the following methods (the code will be gradually released, do not worry):

Click the link to join the group 522720170 (share): https://jq.qq.com/?_wv=1027&k=5C08ATe


This article is from the "Cockroach Performance automation test brand" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1979191

PHPUnit Introduction and environment construction of interface Automation Test series

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.