View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001787 | Xdebug | Code Coverage | public | 2020-05-24 14:08 | 2020-05-28 13:03 |
| Reporter | dvdoug | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.9.5 | ||||
| Fixed in Version | 2.9.6 | ||||
| Summary | 0001787: Branch coverage data does not always follow the lines/functions format | ||||
| Description | Sometimes, for files that don't contain functions I've noticed that Xdebug doesn't always return coverage data inside the lines/functions structure | ||||
| Steps To Reproduce | 1.php <?php print_r(xdebug_get_code_coverage()); // the data for 1.php is not in a lines/functions structure, although the data for 2.php is 2.php $foo = 'bar'; | ||||
| Additional Information | Adding a function into the file, changes the output structure <?php function foo() print_r(xdebug_get_code_coverage()); // now the data for both files is returned in a lines/functions structure | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.4.0-7.4.4 | ||||