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 | derick | ||
| 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. | ||||
| Attached Files | |||||
| Operating System | |||||
| PHP Version | 7.0.10-7.0.14 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-01-28 21:16 | iRaS | New Issue | |
| 2017-01-28 21:16 | iRaS | File Added: test.php | |
| 2017-01-29 12:12 | derick | Note Added: 0004193 | |
| 2017-01-29 12:12 | derick | Assigned To | => derick |
| 2017-01-29 12:12 | derick | Status | new => acknowledged |
| 2017-01-29 12:21 | derick | Severity | tweak => minor |
| 2017-01-29 12:21 | derick | Status | acknowledged => assigned |
| 2017-01-29 12:21 | derick | Target Version | => 2.5.1 |
| 2017-01-29 12:21 | derick | Summary | Code coverage shows not that elseif is covered => Code coverage does not cover instanceof (in elseif) |
| 2017-01-29 12:34 | derick | Note Added: 0004194 | |
| 2017-01-29 12:34 | derick | Status | assigned => closed |
| 2017-01-29 12:34 | derick | Resolution | open => fixed |
| 2017-01-29 12:34 | derick | Fixed in Version | => 2.5.1 |