MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001355XdebugUsage problems (Wrong Results)public2016-10-17 09:392017-02-07 17:07
Reporterromainneutron 
Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionunable to reproduce 
PlatformAnyOSAnyOS VersionAny
Product Version2.4.1 
Target VersionFixed in Version 
Summary0001355: Coverage output does not return all executable lines
DescriptionAs 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
Attached Files

- Relationships

-  Notes
(0003914)
derick (administrator)
2016-12-04 16:29

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.
(0004122)
derick (administrator)
2017-01-03 18:45

Ping?
(0004198)
derick (administrator)
2017-02-07 17:07

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 09: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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker