View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001031 | Xdebug | Uncategorized | public | 2014-02-13 15:58 | 2016-12-04 17:23 |
| Reporter | alexh | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| OS | Mac OSX | OS Version | 10.9.1 | ||
| Product Version | 2.2.3 | ||||
| Summary | 0001031: Closing braces ignored by code coverage | ||||
| Description | During code coverage reports through PHPUnit, a closing brace is being considered as "not-covered". | ||||
| Steps To Reproduce | Code attached to ticket and available here: | ||||
| Additional Information | PHPUnit 3.7.31 | ||||
| Tags | No tags attached. | ||||
| Operating System | Mac OSX | ||||
| PHP Version | 5.4.20-5.4.24 | ||||
|
|
I'll have a look. |
|
|
The result is correct here. None of your test cases cover the case where if ($get_something) (on line 9) is false. Because there is a fall back at the end, there is code on line 16. You never get there though, although you can get there logically, if $get_something in line 9 is false. |