View Issue Details

IDProjectCategoryView StatusLast Update
0001031XdebugUncategorizedpublic2016-12-04 17:23
Reporteralexh Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
OSMac OSXOS Version10.9.1 
Product Version2.2.3 
Summary0001031: 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:
https://gist.github.com/alexhouse/8977684

Additional Information

PHPUnit 3.7.31
XDebug 2.2.3
PHP 5.4.25

TagsNo tags attached.
Operating SystemMac OSX
PHP Version5.4.20-5.4.24

Activities

derick

2014-03-05 09:30

administrator   ~0002750

I'll have a look.

derick

2016-12-04 17:23

administrator   ~0003923

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.