View Issue Details

IDProjectCategoryView StatusLast Update
0002075XdebugCode Coveragepublic2022-04-04 11:32
Reporterbradkent Assigned To 
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