Phpunit, why is this dead code?

I am using PHPUnit (4.1.3) and it calls something like dead code:

enter image description here

it really annoys me. Its OK that the codes after returnare dead, but the call to the closing parenthesis is because the dead code is just an iterator

+4
source share
1 answer

The problem is parsing XDebug, so the closing bracket is not executed after the return statement, since the code leaves this function and does not actually close. This is a known issue in the XDebug / PHP / PHPUnit parsing / execution space.

+7
source

All Articles