private function PHP_CodeCoverage::processUncoveredFileFromWhitelist in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage.php \PHP_CodeCoverage::processUncoveredFileFromWhitelist()
Parameters
string $uncoveredFile:
array $data:
array $uncoveredFiles:
1 call to PHP_CodeCoverage::processUncoveredFileFromWhitelist()
- PHP_CodeCoverage::addUncoveredFilesFromWhitelist in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage.php - Processes whitelisted files that are not covered.
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage.php, line 630
Class
- PHP_CodeCoverage
- Provides collection functionality for PHP code coverage information.
Code
private function processUncoveredFileFromWhitelist($uncoveredFile, array &$data, array $uncoveredFiles) {
$this->driver
->start();
include_once $uncoveredFile;
$coverage = $this->driver
->stop();
foreach ($coverage as $file => $fileCoverage) {
if (!isset($data[$file]) && in_array($file, $uncoveredFiles)) {
foreach (array_keys($fileCoverage) as $key) {
if ($fileCoverage[$key] == PHP_CodeCoverage_Driver::LINE_EXECUTED) {
$fileCoverage[$key] = PHP_CodeCoverage_Driver::LINE_NOT_EXECUTED;
}
}
$data[$file] = $fileCoverage;
}
}
}