b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/mainpay/src/xdebug/tests/coverage/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/mainpay/src/xdebug/tests/coverage/bug01034-001-php73-opcache.phpt

--TEST--
Test for bug #1034: path coverage [1] (>= PHP 7.3, < PHP 7.4, opcache)
--SKIPIF--
<?php
require __DIR__ . '/../utils.inc';
check_reqs('PHP >= 7.3,< 7.4; 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-001.inc';

xdebug_stop_code_coverage(false);
$c = xdebug_get_code_coverage();
dump_branch_coverage($c);
?>
--EXPECTF--
0 1 2 3 
!42
caught
ifelse
- branches
  - 00; OP: 00-04; line: 10-12 HIT; out1: 05  X ; out2: 08 HIT
  - 05; OP: 05-07; line: 13-13  X ; out1: 12  X 
  - 08; OP: 08-11; line: 15-16 HIT; out1: EX  X 
  - 12; OP: 12-15; line: 18-19  X ; out1: EX  X 
- paths
  - 0 5 12:  X 
  - 0 8: HIT

loopy
- branches
  - 00; OP: 00-04; line: 02-04 HIT; out1: 10 HIT
  - 05; OP: 05-09; line: 05-04 HIT; out1: 10 HIT
  - 10; OP: 10-12; line: 04-04 HIT; out1: 13 HIT; out2: 05 HIT
  - 13; OP: 13-16; line: 07-08 HIT; out1: EX  X 
- paths
  - 0 10 13: HIT
  - 0 10 5 10 13: HIT

trycatch
- branches
  - 00; OP: 00-07; line: 21-24 HIT; out1: EX  X 
  - 08; OP: 08-08; line: 26-26 HIT; out1: 09 HIT; out2: EX  X 
  - 09; OP: 09-12; line: 27-29 HIT; out1: EX  X 
- paths
  - 0: HIT
  - 8 9: HIT

{main}
- branches
  - 00; OP: 00-26; line: 02-36 HIT; out1: EX  X 
- paths
  - 0: HIT

Copyright © 2019 by b0y-101