The first intimate contact of PHPUnit- of Interface Automation Test Series
The first attempt of phpunit
Write the code and save it as hello_php.php, as follows:
Then execute under the cmd command
You can see that the execution was successful and the assertion was successful. This is a simple usage. Next time we will explain how to test the get interface.
Data acquisition
The code involved later can be obtained in the following ways (the code will be distributed gradually, don't worry):
Click on the link: https://jq.qq.com/?_wv=1027&k=5C08ATe