1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
--TEST--
Test for bug #1034: path coverage [2] (!opcache)
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('!opcache');
?>
--INI--
xdebug.mode=coverage
--FILE--
<?php
include 'dump-branch-coverage.inc';
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK);
include 'bug01034-002.inc';
xdebug_stop_code_coverage(false);
$c = xdebug_get_code_coverage();
dump_branch_coverage($c);
?>
--EXPECTF--
01234
{main}
- branches
- 00; OP: 00-02; line: 02-02 HIT; out1: 06 HIT
- 03; OP: 03-05; line: 03-02 HIT; out1: 06 HIT
- 06; OP: 06-08; line: 02-02 HIT; out1: 09 HIT; out2: 03 HIT
- 09; OP: 09-11; line: 05-07 HIT; out1: EX X
- paths
- 0 6 9: X
- 0 6 3 6 9: HIT
|