Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Override some more opcodes as there is not always EXT_STMT when you…
… expect it. This should give better results for code coverage. SVN Rev: 1566
- Loading branch information
Showing
6 changed files
with
161 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
TEST_PHP_EXECUTABLE=`which php-5.1dev` php-5.1dev -dxdebug.auto_trace=0 /dat/dev/php/php-5.1dev/run-tests.php tests/*.phpt | ||
TEST_PHP_EXECUTABLE=`which php-5.0dev` php-5.0dev -dxdebug.auto_trace=0 /dat/dev/php/php-5.0dev/run-tests.php tests/*.phpt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--TEST-- | ||
Test with Code Coverage with unused lines | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_options=0 | ||
xdebug.trace_output_dir=/tmp | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.auto_profile=0 | ||
xdebug.profiler_enable=0 | ||
xdebug.dump_globals=0 | ||
xdebug.show_mem_delta=0 | ||
xdebug.trace_format=0 | ||
xdebug.extended_info=1 | ||
--FILE-- | ||
<?php | ||
function a($b) | ||
{ | ||
if ($b == 0) | ||
{ | ||
return true; | ||
} | ||
else | ||
if ($b == 1) | ||
{ | ||
return false; | ||
} | ||
}; | ||
|
||
xdebug_start_code_coverage(true); | ||
|
||
a(1); | ||
|
||
xdebug_stop_code_coverage(false); | ||
var_dump(xdebug_get_code_coverage()); | ||
?> | ||
--EXPECTF-- | ||
array(1) { | ||
["/dat/dev/php/xdebug/tests/coverage3.php"]=> | ||
array(12) { | ||
[2]=> | ||
int(-1) | ||
[4]=> | ||
int(1) | ||
[5]=> | ||
int(1) | ||
[6]=> | ||
int(-1) | ||
[7]=> | ||
int(-1) | ||
[9]=> | ||
int(1) | ||
[10]=> | ||
int(1) | ||
[11]=> | ||
int(1) | ||
[12]=> | ||
int(-1) | ||
[13]=> | ||
int(-1) | ||
[17]=> | ||
int(1) | ||
[19]=> | ||
int(1) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters