View Issue Details

IDProjectCategoryView StatusLast Update
0000562XdebugUncategorizedpublic2010-04-13 19:18
Reporterkore Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1.0RC1 
Summary0000562: Incorrect coverage information for closure function headers
Description

Closure function headers are flagged as executable, but not covered (in PHPUnit coverage reports), even if they were executed.

Additional Information

Reproducing code, expected line 6 to also be covered:

<?php

xdebug_start_code_coverage();
$mapped = array_map(
// This line is flagged as executable, but not covered in PHPUnit code coverage reports
function ( $value )
{
return $value;
},
array( 23, 42 )
);

var_dump( xdebug_get_code_coverage() );
// array(1) {
// ["test.php"] => array(7) {
// [0 ] => int(1)
// [4 ] => int(1)
// [8 ] => int(1)
// [9 ] => int(1)
// [10] => int(1)
// [11] => int(1)
// [13] => int(1)
// }
// }

TagsNo tags attached.
Operating SystemLinux 2.6.32-20-generic 0000029-Ubuntu SMP x86_64 GNU/Linux
PHP Version5.3.2

Activities

derick

2010-04-13 19:18

administrator   ~0001445

Fixed in revision 3259.