PHPStorm seems to be not able to fetch PHPUnit inside Docker

Hello everyone,
I have this issue on OSX (will try windows later) where even if the IDE is correctly configured to run PHP inside docker seems not to be so happy about PHPUnit. Even if the path mappings are correctly the IDE keep saying that he's unable to fetch version of the composer-installed PHPUnit. Tried a whole night but I can't get it to work.
I'm currently using a Devilbox as local service, and from SSH everything works like a charm.

0

Well, we would need a whole bunch of screenshots of your configuration to investigate this.

Do you have a correct remote interpreter selected at Preferences | Languages & Frameworks | PHP?

Did you configure "PHPUnit by remote interpreter" at Preferences | Languages & Frameworks | PHP | Test Frameworks?

0
Avatar
Permanently deleted user

And I'm ready to give everything you need, so, first of all comes the remote interpreter:

After that all the path mappings are already set, in fact if I select the Remote CLI through Preferences | Languages & Frameworks | PHP this is what I get: 

Last, I set PHPUnit path by Preferences | Languages & Frameworks | PHP | Test Frameworks where I select the remote one and the Docker machine with everything installed: 

Thank you!

0
Avatar
Permanently deleted user

Update on the resolved issue:

I had today time to try everything possible to make it work. And I succeeded in a weird way.

As you can see from the previous screenshots there is the one regard the PHPUnit configuration, and as you can see, the path mappings are already set up for my project correctly. But, I had to manually set up the same path mapping into the docker container, finding the whole thing redundant. Weird but now it works.

So, my next question is, why the path mappings (if they're already set) are not automatically added to the docker container?

0

Sorry, this thread slipped through. 

So, IDE didn't see the  /shared/httpd/mytown/vendor/autoload.php? Was Docker image up and running when you tried it? Do you still have this config? Would it be possible to attach a screenshot of the manual mapping you've made?

 

0

请先登录再写评论。