1
0
mirror of synced 2024-12-13 14:56:01 +03:00

fixed variable error in totals printing

This commit is contained in:
meus 2007-08-11 00:04:21 +00:00
parent 1c31b98b18
commit c67cfaf218

View File

@ -172,7 +172,7 @@ class Doctrine_Coverage_Report
if(isset($_GET["desc"]) && $_GET["desc"] == "true"){ if(isset($_GET["desc"]) && $_GET["desc"] == "true"){
$coveredArray = array_reverse($coveredArray, true); $coveredArray = array_reverse($coveredArray, true);
} }
echo "<tr><td>" . TOTAL . "</td><td>" . round((($totalcovered + $totalmaybe) / $totallines) * 100, 2) . " % </td><td>$totallines</td><td>$totalcovered</td><td>$totalmaybe</td><td>$totaldead</td><td></td></tr>"; echo "<tr><td>" . TOTAL . "</td><td>" . round((($totalcovered + $totalmaybe) / $totallines) * 100, 2) . " % </td><td>$totallines</td><td>$totalcovered</td><td>$totalmaybe</td><td>$totalnotcovered</td><td></td></tr>";
foreach($coveredArray as $class => $info){ foreach($coveredArray as $class => $info){
$fileName = str_replace("_", "/", $class) . ".php"; $fileName = str_replace("_", "/", $class) . ".php";
echo "<tr><td>" . $class . "</td><td>" . $info["percentage"] . " % </td><td>" . $info["total"] . "</td><td>" . $info["covered"] . "</td><td>" . $info["maybe"] . "</td><td>" . $info["notcovered"]. "</td><td><a href=\"cc.php?file=" . $fileName . "\">coverage</a></td></tr>"; echo "<tr><td>" . $class . "</td><td>" . $info["percentage"] . " % </td><td>" . $info["total"] . "</td><td>" . $info["covered"] . "</td><td>" . $info["maybe"] . "</td><td>" . $info["notcovered"]. "</td><td><a href=\"cc.php?file=" . $fileName . "\">coverage</a></td></tr>";