下面由phpstorm教程栏目给大家介绍phpstrom docker phpunit 配置webman单元测试 ,希望对需要的朋友有所帮助!
1、项目结构

2、Cli Interpreter 设置
这里的注意点就是映射目录的配置,是一个坑
立即学习“PHP免费学习笔记(深入)”;

(1)Path mappings 目录配置

注意:Remote Path 是不需要配置的哦!
注意:Remote Path 是不需要配置的哦!
注意:Remote Path 是不需要配置的哦!
(2)Docker Container 目录配置

注意:Container Path 是不需要配置的哦!
注意:Container Path 是不需要配置的哦!
注意:Container Path 是不需要配置的哦!
3、设置 Test Framework
(1)安装 phpunit 组件库
composer require --dev phpunit/phpunit
(2)配置单元测试配置文件

4、配置文件
(1)phpunit.xml:单元测试配置文件
./tests
(2)tests:存放测试代码目录
(3)tests/bootstrap.php 脚手架入口
(4)build:生成测试报告目录
5、开始调试.












