Make PHPStorm to use PROJECT_FOLDER / phpunit.xml by default for PHPunit

How can I make PHPStorm always use the phpunit.xmldefault project directory.

The variable {PROJECT_DIRECTORY}does not work (it was only guessed)

Click Path: Default Settings → Languages ​​and Framework → PHP → PHP Module

Screen

edit @LazyOne commented that the path is automatically translated. But this is not so:

  • Edited default settings in any project A, select phpunit.xmlfrom this project
  • Another project opened
  • Validated Defaults
  • The path to "some project A" is used
+4
source share
2 answers

It works by typing

$PROJECT_DIR$/phpunit.xml

.

.idea - , .

+4

( ) . PHPStorm . , XML, .idea:

configuration_file_path="$PROJECT_DIR$/tests/phpunit.xml.dist"

... , .

0

Source: https://habr.com/ru/post/1609950/


All Articles