zl程序教程

您现在的位置是:首页 >  .Net

当前栏目

[PHP] php artisan test 指定执行某个测试文件的一个测试函数

2023-02-18 15:41:33 时间

在用php artisan test做单元测试的时候

需要指定测试某个测试方法

 

php artisan test --filter 方法名 测试文件路径

 

例如下面这样: