View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002164 | Xdebug | Code Coverage | public | 2023-03-05 12:23 | 2023-05-24 16:04 |
Reporter | sebastian | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | confirmed | Resolution | open | ||
Product Version | 3.2.0 | ||||
Target Version | 3.2dev | ||||
Summary | 0002164: Branch and Path Coverage wrong for first class callable | ||||
Description | Copied here from https://github.com/sebastianbergmann/php-code-coverage/issues/984#issuecomment-1454892521.
The | ||||
Steps To Reproduce | <?php xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE | XDEBUG_CC_BRANCH_CHECK); class Foo $firstClassCallable = Foo::bar(...); $firstClassCallable('testing'); $coverage = xdebug_get_code_coverage()[FILE]['functions']; | ||||
Tags | No tags attached. | ||||
Operating System | Irrelevant | ||||
PHP Version | 8.2-dev | ||||
|
I can reproduce this, but in a somewhat different way. I've created a branch/PR with a (failing) test: https://github.com/xdebug/xdebug/pull/889 |