PHPUnit Preferences

The PHPUnit Preferences page allows you to configure your PHPUnit Library Path and set the PHPUnit's communication port.
 PHP Unit tests are a way of constantly testing your code to ensure the right output is being generated each time.

For more on PHP Unit Testing, see the PHPUnit Testing Tutorial.

The PHPUnit Preferences page is accessed from Window | Preferences | PHP | PHPUnit.

Configuring Your PHPUnit Settings

 

 

Instructions on how to complete a procedure

To configure your PHPUnit settings:

  1. Configure the location of your PHPUnit library.

  2. Set the communication port which will be used when PHPUnit Tests are run. The default port number is 7478. Ensure that the selected port is not already in use.
  3. Mark the 'Collect Code Coverage statistics' checkbox to enable code coverage while running unit tests.

  4. Mark the 'Create XML File' checkbox to enable XML file generation and click Browse in the Report Location option to select the location in which they will be created. XML files can later be generated into reports from the PHPUnit Test results view by clicking . See Reporting on PHPUnit Test Results for more information.

  5. Click OK to apply your settings.