您好,我在 Laravel PHPUnit 中退出了新版本,出现以下错误:
Laravel : phpunit cannot open file ExampleTest.php
我不知道为什么会收到此错误。我在全局范围内安装了 PHPUnit,当我在终端中运行“phpunit”时,它运行良好。但我想在特定文件上运行它,例如:
phpunit ExampleTest
提前致谢。
最佳答案
确保您位于项目根目录并引用测试文件夹中的文件。
例子:
phpunit tests/ExampleTest.php
关于php - 拉拉维尔 : phpunit cannot open file ExampleTest. PHP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36812208/