Repository navigation
Releases
Releases · shipmonk-rnd/turbocov
0.1.1
Improvements:
- More precise line coverage (#18)
- A line of a multi-line condition, ternary,
??ormatchis now covered only when its own code runs - PCOV and Xdebug wrongly report such lines as covered even when PHP skips them
- A line of a multi-line condition, ternary,
return match ($a) { // call: f(1)
1 => 'one',
default => 'other', // before: covered, now: not covered
};
if ($a // call: f(false, true, true)
&& $b // before: covered, now: not covered
&& $c // before: covered, now: not covered
) {
return $a // call: f('a')
?? strtoupper('b'); // before: covered, now: not covered