View Issue Details

IDProjectCategoryView StatusLast Update
0002075XdebugCode Coveragepublic2022-04-04 11:32
Reporterbradkent Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1.3 
Target Version3.1devFixed in Version3.1.4 
Summary0002075: Code coverage misses static array assignment lines
Description

smells like the closed issue
https://bugs.xdebug.org/view.php?id=1922

Running the attached example I would expected 100% code coverage returned, however with Xdebug 3.1.3 it only returns 4/ 5

    private static function recordTokenClass()
    {
        self::$currentUse = array(       // this line is not marked as covered... the other 4 lines are
            'class' => self::$groupNamespace,
            'alias' => '',
        );
        self::$recordPart = 'class';
    }
Steps To Reproduce

method contains no conditions.. simply calling the method should result in 100% coverage

TagsNo tags attached.
Operating System
PHP Version8.1.0-8.1.4

Activities

Issue History

Date Modified Username Field Change
2022-03-15 17:27 bradkent New Issue
2022-03-25 15:40 derick Status new => assigned
2022-03-25 15:40 derick Target Version => 3.1dev
2022-03-25 15:40 derick Summary Code coverage misses array assignment lines => Code coverage misses static array assignment lines
2022-03-25 15:40 derick Note Added: 0006254
2022-03-25 16:12 derick Assigned To => derick
2022-03-25 16:12 derick Status assigned => closed
2022-03-25 16:12 derick Resolution open => fixed
2022-03-25 16:12 derick Fixed in Version => 3.1dev
2022-04-04 11:32 derick Fixed in Version 3.1dev => 3.1.4