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
When using empty() inside an elseif clause, checking against a variable in the same scope, the line containing the elseif is not marked as covered - despite the contents of the elseif being marked as covered. Seems to be something in the same vein as #620 .
Note that the issue does not occur when the line is else if , or the variable being checked occurs on a class level instead.
To this end, I have attached a sample class and tests - to run these tests, run composer install && composer test from inside the root directory of the unzipped folder. Note that in the coverage results (as screenshotted above) , the inputSetsINternalVariableToNull and inputSetsVariableToNull functions are the only ones that exhibit that issue.
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions.
When using
empty()
inside anelseif
clause, checking against a variable in the same scope, the line containing theelseif
is not marked as covered - despite the contents of theelseif
being marked as covered. Seems to be something in the same vein as #620 .Note that the issue does not occur when the line is
else if
, or the variable being checked occurs on a class level instead.To this end, I have attached a sample class and tests - to run these tests, run
composer install && composer test
from inside the root directory of the unzipped folder. Note that in the coverage results (as screenshotted above) , theinputSetsINternalVariableToNull
andinputSetsVariableToNull
functions are the only ones that exhibit that issue.phpunit.zip
The text was updated successfully, but these errors were encountered: