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 | derick | ||
| 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. | ||||
| Attached Files | |||||
| 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. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-02-13 15:58 | alexh | New Issue | |
| 2014-02-13 15:58 | alexh | File Added: BraceTest.zip | |
| 2014-02-13 16:03 | alexh | File Added: CoverageTest.png | |
| 2014-03-05 09:30 | derick | Note Added: 0002750 | |
| 2014-03-05 09:30 | derick | Assigned To | => derick |
| 2014-03-05 09:30 | derick | Status | new => assigned |
| 2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
| 2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
| 2016-11-28 21:28 | derick | Status | assigned => acknowledged |
| 2016-12-04 17:23 | derick | Note Added: 0003923 | |
| 2016-12-04 17:23 | derick | Status | acknowledged => resolved |
| 2016-12-04 17:23 | derick | Resolution | open => no change required |
| 2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
| 2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |