mirror of
https://github.com/php/presentations.git
synced 2026-03-24 15:42:33 +01:00
17 lines
663 B
XML
17 lines
663 B
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<slide fontsize="6em">
|
|
<title>What Code Do I Use</title>
|
|
<subtitle>Code Coverage</subtitle>
|
|
|
|
<blurb>Functions for obtaining coverage information:</blurb>
|
|
<example>xdebug_start_code_coverage();
|
|
xdebug_get_code_coverage();
|
|
xdebug_stop_code_coverage();</example>
|
|
|
|
<blurb>Options to xdebug_start_code_coverage(), both only work for files parsed *from* this moment:</blurb>
|
|
<list>
|
|
<bullet>XDEBUG_CC_UNUSED: Enables scanning of code to figure out which line has executable code.</bullet>
|
|
<bullet>XDEBUG_CC_DEAD_CODE: Enables branch analyzation to figure out whether code can be executed.</bullet>
|
|
</list>
|
|
</slide>
|