paths should be right now
This commit is contained in:
parent
e653d1ba15
commit
e9eaa2a9f1
@ -39,19 +39,18 @@ dt { clear: both; }
|
|||||||
<body>
|
<body>
|
||||||
<?
|
<?
|
||||||
$result = unserialize(file_get_contents("coverage.txt"));
|
$result = unserialize(file_get_contents("coverage.txt"));
|
||||||
$coverage = $result["coverage"];
|
|
||||||
|
|
||||||
function getCoverageReport($file){
|
function getCoverageReport($file){
|
||||||
global $result;
|
global $result;
|
||||||
$coverage = $result["coverage"];
|
$coverage = $result["coverage"];
|
||||||
$path = $result["coverage"];
|
$path = $result["path"];
|
||||||
$html = '<div id="coverage">';
|
$html = '<div id="coverage">';
|
||||||
if(!isset($coverage[$file])){
|
if(!isset($coverage[$file])){
|
||||||
$html .= 'No coverage for this file</div>';
|
$html .= 'No coverage for this file</div>';
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
$coveredLines = $coverage[$file];
|
$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";
|
$html .= '<dl class="table-display">' . "\n";
|
||||||
foreach($fileArray as $num => $line){
|
foreach($fileArray as $num => $line){
|
||||||
$linenum = $num+1;
|
$linenum = $num+1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user