PhpStorm只运行本地PHPUnitconfiguration。 如何强制它使用远程(Docker)?

ENV:

  • Ubuntu 16.04
  • PhpStorm 2017.1
  • PHPUnit 5.5.4(远程)

PhpStorm设置:语言和框架> PHP> PHPUnit

  • 解释器:远程Docker
  • 映射:<project root> – > /var/www/html
  • Docker容器:<project root> – > /var/www/html
  • 使用composer php自动加载器: /var/www/html/vendor/autoload.php (检测PHPUnit版本5.5.4)
  • 默认configuration文件: /var/www/html/tests/phpunit.xml
  • 默认引导文件: /var/www/html/tests/bootstrap.php

我也configuration了本地configuration。 本地configuration指向相同的autoload.php ,config和bootstrap文件。 本地configuration工作正常,但我需要在Docker容器上运行testing。

当我从PhpStorm运行testing,它使用本地configuration,我不知道如何告诉PhpStorm使用远程。

重要的提醒:

configuration了远程Docker解释器的XDebug,运行良好。

发现我configuration了一个本地解释器,所以我删除了它,只剩下一个远程的Docker解释器。 之后,远程configuration启动并运行良好。