File: bug01034-002-noopcache.phpt

package info (click to toggle)
xdebug 3.4.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,096 kB
  • sloc: ansic: 19,944; php: 6,217; xml: 4,172; pascal: 534; makefile: 4; sh: 2
file content (32 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
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