I am working with Zend Framework 2 and I want to run tests for all of my modules in PhpStorm 5.0.4. I have installed PhpStorm to test the tests in myproject/module and it successfully finds my tests. The problem is that it does not read my configuration file in every module that is needed (it points to a bootstrap file).
Here is the directory structure for the module ( source ):
/module /User /tests /UserTest /Model /UserTest.php Bootstrap.php phpunit.xml.dist TestConfig.php.dist
When I run the test, it gives me an error because Bootstrap.php does not start until UserTest.php . All files are correct, because if I cd to /myproject/module/User/tests/ and run phpunit in the terminal, it works fine.
I would like it to use the configuration (and thus the load) in each module. I tried using the --configuration option with a relative path, but I could not get it to work.
Here is my current configuration:

Any pointers to how I can run the configuration file (and load) when the module is being tested? That is, the module has its own configuration file and boot file.
Thanks in advance.
source share