PHPUnit with remote interpreter
I try to set up PHPUnit to be run on Vagrant VM using remote interpreter. I follow this guide:
PHPUnit is my project's composer dependency, so I selected "Use composer autoloader".
Path mappings: "<Project root>/app→/var/www/app"
Path to script: "/var/www/app/vendor/autoload.php"
Default configuration file: "/var/www/app/phpunit.xml"
All paths are valid and points to where needed, however PHPStorm tells "PHPUnit version: not installed". When I hit the refresh button I see dialog saying:
"Can not parse PHPUnit version output: Could not open input file: /var/www/app/vendorphpunitphpunitphpunit"
PHPStorm 2017.1.1
vagrant@neo-api:/var/www/app$ vendor/bin/phpunit --version
PHPUnit 6.0.11 by Sebastian Bergmann and contributors.
Any hints appreciated.

Please sign in to leave a comment.
Hi there,
https://youtrack.jetbrains.com/issue/WI-35806 -- fixed today ... so should be in 2017.1.2 (try EAP build when it will become available if you need it faster than final release)
P.S. Similar on SO: http://stackoverflow.com/questions/43188606/phpstorm-can-not-parse-phpunit-version-output-very-strange-error -- I originally thought that you are the same person -- at quick glance it looks very similar.
Thanks for the reply. I'll wait for regular update. As for SO - I smelled bug here, so this board seemed better choice to start form. But interesting is that guy on SO did the screenshot the same way I did :)
@... I had this exact same problem which was strange because I am using the exact same set up on other projects. I realised on this project I was using PHPUnit 9 and on others PHPUnit 7. I rolled back to PHPUnit 7 and it all works again.
How to fix the problem: try to check 1 space before the first slash at Test Frameworks -> <your item> -> Path to script.
Example of "Path to script" field: " /home/myproject/vendor/autoload.php".
When I removed the space, PHPStorm found PHPUnit version after clicking to "Reload phpinfo".