1

Env:

  • Ubuntu 16.04
  • PhpStorm 2017.1
  • PHPUnit 5.5.4 (remote)

PhpStorm settings: Languages & Frameworks > PHP > PHPUnit

  • Interpreter: Remote Docker
  • Mappings: <project root> -> /var/www/html
  • Docker container: <project root> -> /var/www/html
  • Use composer autoloader: /var/www/html/vendor/autoload.php (detects PHPUnit version 5.5.4)
  • Default configuration file: /var/www/html/tests/phpunit.xml
  • Default bootstrap file: /var/www/html/tests/bootstrap.php

Also I have configured local configuration. Local configuration points to the same autoload.php, config and bootstrap file. Local config works well, but I need to run tests on Docker container.

When I run test from PhpStorm, it uses local configuration, and I can't figure out how to tell PhpStorm to use remote.

Important notice:

XDebug configured with the remote Docker interpreter and works well.

1 Answer 1

0

Found that I had a local interpreter configured, so I've deleted it, and left only one remote Docker interpreter. After that, remote configuration became active and runs well.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.