View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001903 | Xdebug | Code Coverage | public | 2020-11-30 21:46 | 2020-12-02 14:00 |
| Reporter | guice | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0.0 | ||||
| Target Version | 3.0dev | Fixed in Version | 3.0.1 | ||
| Summary | 0001903: Constants should always be available, regardless of which mode Xdebug is in | ||||
| Description | When running phpunit with code coverage, it runs these checks as documented -- https://xdebug.org/docs/all_functions#xdebug_start_code_coverage But these variables are not defined with using XDebug 3 with phpunit 8.x, on php7.4
I found no mention of XDEBUG_CC_DEAD_CODE or XDEBUG_CC_UNUSED being removed in the update logs: | ||||
| Steps To Reproduce | Build a new site with phpunit 8.x, attempt to run a unit test with code-coverage enabled. | ||||
| Additional Information | I was able to successfully perform unit tests by defining XDEBUG_CC_DEAD_CODE and XDEBUG_CC_UNUSED myself within my bootstrap file. I tried to search the bugtracker for 'XDEBUG_CC_DEAD_CODE' but I couldn't find a good search. And Google'ing did not show anything in the last week (site:bugs.xdebug.org "XDEBUG_CC_DEAD_CODE") | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.4.10-7.4.19 | ||||
|
|
Oh, I see now. This now only available with XDEBUG_MODE=coverage. I'll close this issue -- if I can find out how. |
|
|
It would appear I cannot. Feel free to close this issue, and add something on the documentation about this change, please. Thank you. |
|
|
I think it's a valid report. The constants should always be available. |
|
|
|