Skip to content

Commit

Permalink
Removing unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 10, 2010
1 parent 3dad64c commit b83f3d3
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions cake/tests/lib/code_coverage_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,43 +214,6 @@ function report($output = true) {
}
}

/**
* 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
*
Expand Down

0 comments on commit b83f3d3

Please sign in to comment.