PhpStorm 无法解析 PHPUnit 版本输出。非常奇怪的错误

标签 php windows vagrant phpunit phpstorm

我正在尝试在 Windows 10 的 PhpStorm 2017.1 中为 Laravel 项目使用 Vagrant box 设置 PHPUnit。我已经设置了一个远程解释器,我已经使用它几个月了,一切正常。

我被要求做一些单元测试,所以我按照同事的指示(Mac 上的 PhpStorm)用 PHPUnit 设置了 PhpStorm,但是当我在供应商中选择 autoload.php 时我收到错误消息的文件夹

"Can not parse PHPUnit version output: Could not open input file: /vagrant/vendorphpunitphpunitphpunit" (no slashes).

如果我在命令行中通过 vagrant ssh 运行 PHPUnit,我的测试执行得很好,我可以在 PhpStorm 中手动选择 PHPUnit phar,但是我缺少自动加载的类,所以一切失败。

Screenshot of PhpStorm's PHPUnit config

最佳答案

WI-35806 ——好像一样。它今天被标记为已修复。

如果这是正确的票证,那么修复程序应该在 2017.1.2 中可用——您可以尝试 EAP build等到2017.1.2 final正式发布,什么时候可以上线。

关于PhpStorm 无法解析 PHPUnit 版本输出。非常奇怪的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43188606/

相关文章:

apache - "The machine with the name ' c6401 ' was not found configured for this Vagrant environment."错误

github - 在 vagrant 中创建的哪些文件夹或文件不应推送到 GitHub 上的存储库中

PHP 获取存储在数据库中的图像

php - mysqli_error() expects parameter 1 to be mysqli, null given 是什么意思?

windows - 快速用户切换如何影响 Windows 服务?

c++ - 以编程方式在 Windows 上隐藏应用程序

Laravel Homestead 和 vagrant 不会在 vagrant box 中创建文件夹

php - 使用 php 连接到 mysql 数据库

php - 从 Flash 请求 php 文件在 Safari 中挂起

Python - 检查用户是否具有管理员权限