- My unit tests are located inside a Vagrant machine
- I'm using Xdebug with Apache on Ubuntu 18,
- I use PhpStorm to run PHPUnit tests.
The issue is the unit tests are restricted to be run by "apache" user and the way I run them from the command line is:
sudo -u apache phpunit tests/EmailFunctionsLargeTest.php --stop-on-failure
and it works, but how do I simulate the sudo -u apache phpunit when using PhpStorm?
P.S.
PhpStorm runs the tests as vagrant user...
