View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001922 | Xdebug | Code Coverage | public | 2020-12-26 12:30 | 2022-03-15 17:17 |
| Reporter | thierrydraper | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0.1 | ||||
| Target Version | 3.0dev | Fixed in Version | 3.0.2 | ||
| Summary | 0001922: Code coverage misses array assignment lines | ||||
| Description | Since upgrading to Xdebug 3.0, the code coverage is no longer including the first line in some multi-line assignments. Running the attached example I would expected 100% code coverage returned, however with Xdebug 3.0.1 it only returns 18 / 21 (missing lines 28, 34 and 43 when put through PHPUnit's --coverage-html). Rolling back to Xdebug 2.9.8 and re-running the test returns 100% code coverage as expected. | ||||
| Steps To Reproduce | Run the example unit test through PHPUnit 8.5.0: | ||||
| Additional Information | $ php -v | ||||
| Tags | No tags attached. | ||||
| Operating System | Fedora 33 with httpd and php-fpm | ||||
| PHP Version | 7.4.10-7.4.19 | ||||
|
|
I think I see the problem, the ASSIGN_DIM opcode isn't overloaded for just coverage, just like ASSIGN_OBJ from 0001910. |
|
|
|
|
|
Issue seems to be back? |