PHPUnit Preferences

 

The PHPUnit Preferences page allows you to see 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.

 

The PHPUnit Library Path displays the location of your PHPUnit Library. These settings cannot be changed.

 

 

Instructions on how to complete a procedure

To configure your PHPUnit settings:

  1. 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.

  2. Mark the 'Collect Code Coverage statistics' checkbox to enable code coverage while running unit tests.

  3. Mark the 'Generate XML Report' checkbox to enable XML Report generation and click Browse in the Report Location option to select the location in which they will be created.
    XML reports allow you to create reports of your Unit Test results. See Reporting on PHPUnit Test Results for more information.

  4. Click OK to apply your settings.

 

 

 

Related Links

Related Links:

Using PHPUnit Testing

Creating a PHPUnit Test Case

Creating a PHPUnit Test Suite

PHP Preferences