Test Configuration

Custom configuration of test cases can be defined in a standard PHPUnit Configuration file. This allows to specify bootstrap script, timeouts, error handling and other PHPUnit framework options.

Choosing Configuration File

Configuration file must be a valid XML file containing <phpunit> root element. To choose active test configuration, go to Solution Explorer, right click onto a configuration file and choose 'Active PHPUnit Configuration'.

Note: Active PHPUnit Configuration setting is stored per user (within Solution User Options (.suo) file).

PHPUnit configuration context menu

If no configuration file is set, test runner will try to find a configuration file in the root of your solution directory and then in the root of projects.

Editing Configuration File

The second command in the menu is Open in Configuration Editor. This brings simple configuration editor allowing to set various PHPUnit options. See PHPUnit documentation for more information.

PHPUnit configuration