We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
processUncoveredFilesFromWhitelist
1 parent 8e762f2 commit 0eaf246Copy full SHA for 0eaf246
PHP/CodeCoverage.php
@@ -523,8 +523,13 @@ protected function addUncoveredFilesFromWhitelist()
523
if (!file_exists($uncoveredFile)) {
524
continue;
525
}
526
-
527
- if ($this->processUncoveredFilesFromWhitelist) {
+ $error = false;
+ $classes = array();
528
+ $canIncludeFile = PHP_CodeCoverage_Util::canIncludeFile($uncoveredFile, array(
529
+ 'define',
530
+ 'includeOnce',
531
+ ), $classes, $error);
532
+ if ($canIncludeFile && $this->processUncoveredFilesFromWhitelist) {
533
$this->processUncoveredFileFromWhitelist(
534
$uncoveredFile, $data, $uncoveredFiles
535
);
0 commit comments