php - Unreachable statement for PHPUnit achieving 100% Code Coverage -


i let phpunit generate code coverage , xdebug tell lines have not been reached:

public static function execute() {     static $hasrun = false;      if (false == $hasrun)     { // first run: init pat         self::registerautoloader();         self::registerpatincludedir();          $hasrun = true;     }      return $hasrun; } 

this runs before can tested. inner block won't run again. there way reach block in if ? or way make 1 single test in phpunit run first?


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -