ssa_bug_009.phpt 398 B

123456789101112131415161718192021
  1. --TEST--
  2. Incorrect type inference
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. class PHP_CodeCoverage
  8. {
  9. private function addUncoveredFilesFromWhitelist()
  10. {
  11. foreach ($uncoveredFiles as $uncoveredFile) {
  12. for ($i = 1; $i <= $lines; $i++) {
  13. $data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
  14. }
  15. }
  16. }
  17. }
  18. ?>
  19. OK
  20. --EXPECT--
  21. OK