PhpUnit failing in PhpStorm w/ exit code 255 in Symfony 2 project

前端 未结 4 652
暗喜
暗喜 2020-12-11 04:25

I\'m having trouble getting phpunit working inside of a Symfony project in PhpStorm - phpunit -c app works fine in the OSX terminal.

Here is the error:

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 05:04

    PhpStorm does not always instantiate the test runner from the project root, to fix this add the absolute path to the project root under 'custom working directory' in the run/debug config. This will save you having to add the absolute path to the app in the phpunit.xml.dist config, it will also ensure that any relative path file includes (such as JSON test data) can be found.

提交回复
热议问题