还不快抢沙发

添加新评论

### 一、配置php环境 打开File >> Settings,新建一个php版本为7.2的环境 ![](http://image.rdhonor.com/2018/09/17/5au0rwy0wvqr8akb8wuwuyht.png) ![](http://image.rdhonor.com/2018/09/17/87nhv53rnd5wfetuf9i5y95a.png) ![](http://image.rdhonor.com/2018/09/17/3jj81tovehb863d4jtkid9xj.png)![](http://image.rdhonor.com/2018/09/17/kkady87svls48nj4zke4v47y.png) ![](http://image.rdhonor.com/2018/09/17/qrszqejkxhm4sblhuoi7784c.png) ### 二、配置phpunit #### 2.1选择phpunit的位置 ![](http://image.rdhonor.com/2018/09/17/dh71amdn8u32mri5m0uwo5a3.png) ![](http://image.rdhonor.com/2018/09/17/we0bdkxh8bbqmwugm2sd351i.png) #### 2.2选择phpunit的配置文件 ![](http://image.rdhonor.com/2018/09/17/84xqr1b9a16cro8w3sw3r1zm.png) ![](http://image.rdhonor.com/2018/09/17/wc68n8livkuawpirsmtkwg9f.png) #### 2.3运行测试 ![](http://image.rdhonor.com/2018/09/17/wqbmx79ek3nczaqoyrcniej4.png) ![](http://image.rdhonor.com/2018/09/17/iice0dcnozluiib4onq3n2cx.png)