You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a similar issue in a slightly different setup:
Q
A
php-code-coverage version
5.2.2
PHP version
7.1.9
Driver
Xdebug
Xdebug version (if used)
2.5.5
Installation Method
Composer
Usage Method
PHPUnit
PHPUnit version (if used)
6.2.4
The line containing assignment of a boolean value to the array element is reported as not covered, however the rest of the assignments in the same array are reported as covered. The file coverage is reported correctly as 100% which probably means that this line is considered non-executable.
The line of code with
switch(true)
is not covered in Code Coverage Data. When it has any other condition, likeswitch($someVar)
- it works as expectedI'm not sure this is an issue with code coverage or xDebug, but I don't have enough knowledge to check it.
The text was updated successfully, but these errors were encountered: