for Windows and Linux
for OS X
The page is available only when the PHP plugin is enabled.
The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository
as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.
Use this page to configure the way to launch unit tests of your PHP applications.
In this area, specify where to take the PHPUnit test framework. The available options are:
Load from include path: choose this option to have IntelliJ IDEA run the PHPUnit from PEAR
configured as an include path on the PHP page
of the Settings / Preferences Dialog.
Use custom loader: choose this option to run the PHPUnit instance installed by
the Composer Dependency Manager.
The package is retrieved and loaded by the dedicated
autoload.php file located in the
Specify the location of the
autoload.php file in the Path to script text box.
Type the path manually or click the Browse button and select the file in the dialog box that opens,
Path to phpunit.phar: choose this option to run PHPUnit from the
In this area,
appoint the configuration |
XML file to use for launching and executing scenarios.
By default, PHPUnit looks for a
phpunit.xml configuration file in the project root folder or in the
You can appoint a custom configuration file.
Default configuration file: select this check box
to specify your own
XML configuration file.
This file will be later used as default in all PHPUnit run/debug configurations.
In the text box, specify the location of the configuration file to use. Type the path manually
or click the button and choose the file in the dialog box that opens.
Clear the check box
to have PHPUnit use the
phpunit.xml configuration file from the project root folder or from the
If no such file is found, test execution fails, therefore it may be more reliable to specify the configuration file explicitly.
Default bootstrap file: select this check box
to have PHP script always executed before launching tests. In the text box, specify the location of the script. Type the path manually
or click the Browse button and select the desired folder
in the dialog that opens.
Last modified: 22 December 2016