Functions for obtaining coverage information:
xdebug_start_code_coverage();
xdebug_get_code_coverage();
xdebug_stop_code_coverage();
Options to xdebug_start_code_coverage(), both only work for files parsed from this moment:
- XDEBUG_CC_UNUSED: Enables scanning of code to figure out which line has executable code.
- XDEBUG_CC_DEAD_CODE: Enables branch analyzation to figure out whether code can be executed.