Answer the question
In order to leave comments, you need to log in
How to connect PhpStorm and PHPUnit in Docker?
Good afternoon.
Problem with running tests directly from PhpStorm.
There are 3 Docker containers:
Doctrine\DBAL\Driver\PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known.
Answer the question
In order to leave comments, you need to log in
in bookmarks I found a guide on which I set it up, everything took off
https://blog.alejandrocelaya.com/2017/02/01/run-ph...
although I see that your problem seems to be deeper
ps maybe you need to tweak the application settings or phpunit .xml
https://stackoverflow.com/questions/41913471/docke...
Basically, you're just running the container outside of the environment that Docker Compose creates.
Support added in 2019.1, but bugs are still coming out.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question