mirror of
https://github.com/php/php-src.git
synced 2026-04-17 21:11:02 +02:00
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
22 lines
423 B
PHP
22 lines
423 B
PHP
--TEST--
|
|
Incorrect type inference
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
class PHP_CodeCoverage
|
|
{
|
|
private function addUncoveredFilesFromWhitelist()
|
|
{
|
|
foreach ($uncoveredFiles as $uncoveredFile) {
|
|
for ($i = 1; $i <= $lines; $i++) {
|
|
$data[$uncoveredFile][$i] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
OK
|
|
--EXPECT--
|
|
OK
|