MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000562XdebugUsage problems (Wrong Results)public2010-04-13 10:552010-04-13 20:18
Reporterkore 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.1.0RC1 
Target VersionFixed in Version 
Summary0000562: Incorrect coverage information for closure function headers
DescriptionClosure function headers are flagged as executable, but not covered (in PHPUnit coverage reports), even if they were executed.
Additional InformationReproducing 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
Attached Files

- Relationships

-  Notes
(0001445)
derick (administrator)
2010-04-13 20:18

Fixed in revision 3259.

- Issue History
Date Modified Username Field Change
2010-04-13 10:55 kore New Issue
2010-04-13 10:55 kore Operating System => Linux 2.6.32-20-generic 0000029-Ubuntu SMP x86_64 GNU/Linux
2010-04-13 10:55 kore PHP Version => 5.3.2
2010-04-13 10:55 kore Xdebug Version => 2.1.0-dev
2010-04-13 20:18 derick Note Added: 0001445
2010-04-13 20:18 derick Status new => closed
2010-04-13 20:18 derick Resolution open => fixed
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker