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 | derick | ||
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 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2020-05-24 14:08 | dvdoug | New Issue | |
2020-05-28 12:10 | derick | Assigned To | => derick |
2020-05-28 12:10 | derick | Status | new => closed |
2020-05-28 12:10 | derick | Resolution | open => fixed |
2020-05-28 12:10 | derick | Fixed in Version | => 2.9.6 |
2020-05-28 12:10 | derick | Note Added: 0005418 | |
2020-05-28 13:03 | derick | Relationship added | has duplicate 0001788 |