PhpStorm不会从Docker容器读取PHPconfiguration

我想要的是

在PhpStorm中通过terminal和configuration运行PHPUnit

我拥有的

以前的问题

解决在这里 – 关于找不到文件

运行的文件

#!/usr/bin/env bash # echo "Current working directory: '"$(pwd)"'" cd $(pwd) && docker run --rm -t -v $(pwd):/var/www -e SYMFONY_ENV=dev ezsystems/php:7.1-v1-dev php $@ 

概要

当我通过terminal运行这个:

 docker-phpez vendor/bin/phpunit --coverage-text 

一切工作正常。

当我尝试运行PhpStorm的configuration时,我得到警告: PHP is not installed

但是运行这个远程PHP解释器,给我:

 docker://ezsystems/php:7.1-v1/php /opt/.phpstorm_helpers/phpunit.php --configuration /var/www/phpunit.xml.dist Testing started at 17:06 ... The value $_SERVER['IDE_PHPUNIT_PHPUNIT_PHAR'] is specified, but file doesn't exist '/var/www/vendor/bin/phpunit' Process finished with exit code 1 

看起来像安装不起作用。

题:

  • 你知道为什么吗? 如何解决这个问题?

在之前的PhpStorm版本中,我没有遇到任何问题。 现在,我有2016.3.2。

更新PHPStorm到2017.1.4后,我做了什么:

  • 切换到dockerconfiguration
  • phpunit从composer php的autoload.php加载

开始工作。 仍然不知道为什么docker-phpez不工作PHPStorm,但我现在就停下来。