View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001394 | Xdebug | Code Coverage | public | 2017-01-28 21:16 | 2017-01-29 12:34 |
| Reporter | iRaS | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | Manjaro Linux | OS Version | 16.10 |
| Product Version | 2.4.1 | ||||
| Target Version | 2.5.1 | Fixed in Version | 2.5.1 | ||
| Summary | 0001394: Code coverage does not cover instanceof (in elseif) | ||||
| Description | A elseif with expression ($a instanceof Class) is not shown for coverage. Even if the the inner part is getting executed. It works with other elseif parts very well. Even if I can't set a break point there. When you reproduce with the script I provided you will see that all lines except this elseif get a hit. | ||||
| Steps To Reproduce | create a file with this content and execute it: xdebug_start_code_coverage(); function whatAmI($var) { whatAmI(new \stdClass); var_dump(xdebug_get_code_coverage()); | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.0.10-7.0.14 | ||||