View Issue Details

IDProjectCategoryView StatusLast Update
0000470XdebugUncategorizedpublic2009-10-15 17:25
Reportersebastian Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0000470: catch blocks marked as dead code unless executed
Description

Code Coverage marks catch blocks as dead code unless the block is actually hit by an exception.

Because of this, PHPUnit marks a method as 100% covered even if there is an untested catch-block.

This was originally reported by a PHPUnit user at http://www.phpunit.de/ticket/842. The ticket has a short and self-contained reproducing test case.

TagsNo tags attached.
Operating SystemNot relevant
PHP Version5.3-dev

Activities

derick

2009-10-15 17:25

administrator   ~0001092

Fixed in CVS (HEAD only)