1
0
mirror of synced 2024-12-14 07:06:04 +03:00

paths should be right now

This commit is contained in:
meus 2007-08-10 23:23:21 +00:00
parent e653d1ba15
commit e9eaa2a9f1

View File

@ -39,19 +39,18 @@ dt { clear: both; }
<body>
<?
$result = unserialize(file_get_contents("coverage.txt"));
$coverage = $result["coverage"];
function getCoverageReport($file){
global $result;
$coverage = $result["coverage"];
$path = $result["coverage"];
$path = $result["path"];
$html = '<div id="coverage">';
if(!isset($coverage[$file])){
$html .= 'No coverage for this file</div>';
return $html;
}
$coveredLines = $coverage[$file];
$fileArray = file(str_replace($path, Doctrine::getPath(), $file));
$fileArray = file(str_replace($path, Doctrine::getPath() . "/", $file));
$html .= '<dl class="table-display">' . "\n";
foreach($fileArray as $num => $line){
$linenum = $num+1;