View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001440 | Xdebug | Code Coverage | public | 2017-05-20 09:58 | 2017-05-28 17:07 |
Reporter | freyr | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 2.5.4 | ||||
Summary | 0001440: Code coverage in interfaces shows group use declarations written in multiline as uncovered code | ||||
Description | If you tried to write use declarations as group eg: then code-coverage shows line after first \n as uncovered | ||||
Steps To Reproduce | Clone repository: https://github.com/freyr/photo-gallery php -dxdebug.coverage_enable=1 vendor/phpunit/phpunit/phpunit --coverage-text --testsuite unit Then fix use declaration in Freyr\Gallery\Model\Gallery\Manage\PhotoManageRepository or Freyr\Gallery\Model\Gallery\PhotoRepository and run tests again. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.1.5-7.1.9 | ||||
|
Seems like this might be related to https://github.com/sebastianbergmann/php-code-coverage/issues/526 "Incorrect coverage reported", specially if since that seems to occur in multi-line declarations. |
|
I can reproduce this, but I can not see where PHP actually generates code filename: /home/derick/dev/php/xdebug-reproduce-cases/1440/photo-gallery/src/Model/Gallery/Manage/PhotoManageRepository.php
|
|
I did open a bug related to this in the php-code-coverage repo, and they closed it and said the problem was here. https://github.com/sebastianbergmann/php-code-coverage/issues/526 |
|
@vpassapera: This has nothing to do with what you reported in https://github.com/sebastianbergmann/php-code-coverage/issues/526. What you reported in https://github.com/sebastianbergmann/php-code-coverage/issues/526#issue-227935416 was fixed by Derick and Xdebug. It has nothing to do with what @freyr reported here. What you reported in https://github.com/sebastianbergmann/php-code-coverage/issues/526#issuecomment-304151561 also has nothing to do with what @freyr reported here. @freyr: It looks like you have discovered a visualization issue related to multi-use statements. @derick opened a ticket for this at https://github.com/sebastianbergmann/php-code-coverage/issues/530 and I will work on this ASAP. |
|
This is not related to Xdebug, but rather how PHP Code Coverage works. As no work is required here, I am closing this issue. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-05-20 09:58 | freyr | New Issue | |
2017-05-23 19:22 | vpassapera | Note Added: 0004345 | |
2017-05-24 21:17 | derick | Note Added: 0004347 | |
2017-05-24 21:55 | vpassapera | Note Added: 0004349 | |
2017-05-26 14:55 | sebastian | Note Added: 0004351 | |
2017-05-28 17:07 | derick | Note Added: 0004352 | |
2017-05-28 17:07 | derick | Status | new => resolved |
2017-05-28 17:07 | derick | Resolution | open => no change required |
2017-05-28 17:07 | derick | Assigned To | => derick |