User Guide > Reference > PHP Preferences > PHPUnit Preferences

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.

PHPUnit Preferences Page

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

Configuring Your PHPUnit Settings

 

 

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

  4. Click OK to apply your settings.

 

 

 

Related Links:

Using PHPUnit Testing

Creating a PHPUnit Test Case

Creating a PHPUnit Test Suite

PHP Preferences

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.