cgodmmd-9 2021-03-05 16:17 采纳率: 42.9%
浏览 34

php think unit

如果有多个人开发项目,用phpunit做测试,他们的测试用例可能有冲突,控制台执行php think unit 怎么做指定文件,或者创建不同的tests文件夹,又或者怎么做隔离啥的??

php think unit

PHPUnit 4.8.36 by Sebastian Bergmann and contributors.
..测试成功!

Time: 423 ms, Memory: 10.00MB
  • 写回答

2条回答 默认 最新

  • cgodmmd-9 2021-03-05 16:18
    关注
    phpunit --filter testBasicExample
    phpunit : 无法将“phpunit”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
    所在位置 行:1 字符: 1
    + phpunit --filter testBasicExample
    + ~~~~~~~
        + CategoryInfo          : ObjectNotFound: (phpunit:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    评论

报告相同问题?