php - Phpunit - code coverage - strange non-executed code on switch statement -


i testing method has switch statement , couple of cases, weird thing 1 of line results not executed, case line, while content it's executed.

the picture shows issue

case line not executed

i wondering how possible, , how can have line covered (my entire class results not covered because of line).

just completition, excerpt of test

$this->assertregexp('/<br>/', $scheduler->getverboseoutput('html')); 

updating phpunit v6 , xdebug fixed issue.

enter image description here

thanks @sebastian bergmann


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -