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