mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-26 08:43:41 +00:00
Removing unused method.
This commit is contained in:
parent
3dad64c9c0
commit
b83f3d37c8
1 changed files with 0 additions and 37 deletions
|
@ -214,43 +214,6 @@ class CodeCoverageManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Html reporting
|
|
||||||
*
|
|
||||||
* @param string $testObjectFile
|
|
||||||
* @param string $coverageData
|
|
||||||
* @param string $execCodeLines
|
|
||||||
* @param string $output
|
|
||||||
* @return void
|
|
||||||
* @static
|
|
||||||
*/
|
|
||||||
function reportCaseHtml($testObjectFile, $coverageData, $execCodeLines) {
|
|
||||||
$manager = CodeCoverageManager::getInstance();
|
|
||||||
$lineCount = $coveredCount = 0;
|
|
||||||
$report = '';
|
|
||||||
|
|
||||||
foreach ($testObjectFile as $num => $line) {
|
|
||||||
$num++;
|
|
||||||
$foundByManualFinder = isset($execCodeLines[$num]) && trim($execCodeLines[$num]) != '';
|
|
||||||
$foundByXdebug = isset($coverageData[$num]) && $coverageData[$num] !== -2;
|
|
||||||
|
|
||||||
// xdebug does not find all executable lines (zend engine fault)
|
|
||||||
if ($foundByManualFinder && $foundByXdebug) {
|
|
||||||
$class = 'uncovered';
|
|
||||||
$lineCount++;
|
|
||||||
|
|
||||||
if ($coverageData[$num] > 0) {
|
|
||||||
$class = 'covered';
|
|
||||||
$coveredCount++;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$class = 'ignored';
|
|
||||||
}
|
|
||||||
$report .= $manager->__paintCodeline($class, $num, $line);
|
|
||||||
}
|
|
||||||
return $manager->__paintHeader($lineCount, $coveredCount, $report);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Diff reporting
|
* Diff reporting
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue