View Issue Details

IDProjectCategoryView StatusLast Update
0001355XdebugUncategorizedpublic2017-02-07 17:07
Reporterromainneutron Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformAnyOSAnyOS VersionAny
Product Version2.4.1 
Summary0001355: Coverage output does not return all executable lines
Description

As reported in https://github.com/sebastianbergmann/php-code-coverage/issues/411#issuecomment-254048381 :

In some unknown conditions, the executable lines are not fully returned.

It's pretty difficult to reproduce the issue in a very small amount of code, here's what I've seen using var_dump in php-code-coverage code:

In some case (when it works as expected), here's the kind of code coverage data reported by Xdebug:

{
    "36": [
        "Bundle\\MyBundle\\Tests\\Controller\\Debug\\MyAccountControllerTest::testAccountIndex"
    ],
    "37": null,
    "49": [],
    "51": [],
    "52": [],
    "56": [],
    "58": null,
    "70": [],
    "71": null,
    "83": [],
    "84": null,
    "101": [],
    "102": [],
    "105": [],
    "107": [],
    "108": [],
    "110": [],
    "111": [],
    "112": [],
    "113": [],
    "114": [],
    "115": [],
    "116": [],
    "118": null
}

However, when the same test is run in the test suite, here's the code coverage data reported by xdebug:

array(2) {
  [36] =>
  array(1) {
    [0] =>
    string(87) "Bundle\MyBundle\Tests\Controller\Debug\MyAccountControllerTest::testAccountIndex"
  }
  [37] =>
  NULL
}

I hope it would help @derickr to solve the issue. In the meantime, I'm continuing to try to find a small reproducer

TagsNo tags attached.
Operating System
PHP Version7.0.10-7.0.14

Activities

derick

2016-12-04 16:29

administrator   ~0003914

In order for me to look at this, I need a self-contained and reproducible case as part of this bug tracker. There are so many comments on the issues on php-code-coverage that I simply don't understand what people are saying. A fully concise description here, would improve this immensely.

derick

2017-01-03 18:45

administrator   ~0004122

Ping?

derick

2017-02-07 17:07

administrator   ~0004198

Closing this as I can't reproduce this and no feedback was provided when asked. I also think this could be 0001386

Issue History

Date Modified Username Field Change
2016-10-17 08:39 romainneutron New Issue
2016-12-04 16:29 derick Note Added: 0003914
2016-12-04 16:29 derick Assigned To => derick
2016-12-04 16:29 derick Status new => feedback
2017-01-03 18:45 derick Note Added: 0004122
2017-02-07 17:07 derick Note Added: 0004198
2017-02-07 17:07 derick Status feedback => resolved
2017-02-07 17:07 derick Resolution open => unable to reproduce
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized