Processes whitelisted files that are not covered.
protected function addUncoveredFilesFromWhitelist() {
$data = array();
$uncoveredFiles = array_diff($this->filter
->getWhitelist(), array_keys($this->data));
foreach ($uncoveredFiles as $uncoveredFile) {
if (!file_exists($uncoveredFile)) {
continue;
}
if ($this->processUncoveredFilesFromWhitelist) {
$this
->processUncoveredFileFromWhitelist($uncoveredFile, $data, $uncoveredFiles);
}
else {
$data[$uncoveredFile] = array();
$lines = count(file($uncoveredFile));
for ($i = 1; $i <= $lines; $i++) {
$data[$uncoveredFile][$i] = -1;
}
}
}
$this
->append($data, 'UNCOVERED_FILES_FROM_WHITELIST');
}