User Guide > Reference > PHP Preferences > Code Coverage Preferences

Code Coverage Preferences

The Code Coverage Preferences page displays a preview of code in Code Coverage view, with the current color and font settings. Code coverage views are displayed when using various features such as profiling, unit testing and debugging to show which lines of code have been covered by this functionality.

The Code Coverage Preferences page is accessed from Window | Preferences | PHP | Code Coverage .

Code Coverage Preferences page

Configuring Code Coverage Colors and Fonts

 

 

Instructions on how to complete a procedure

To configure code coverage colors and fonts:

  1. Click the 'Colors and Fonts' link.
    The Colors and Fonts preferences page will be displayed, with the PHP Debug category open.

Colors and Fonts Preferences page - PHP Debug

  1. Select the required background color for covered lines and uncovered lines by selecting the relevant option and clicking the required color in the color selection box (top-right corner).

  2. Click Apply.

  3. The changes will be displayed in the Code Coverage preview page.

 

More color and font options can be configured by opening the preferences page (Window | Preferences) and selecting:

 

 

Related Links:

PHP Preferences

Working with the Profiler

Running a PHPUnit Test Case

 

 

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