summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test/views
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery_unit_test/views')
-rw-r--r--modules/gallery_unit_test/views/kohana_unit_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/views/kohana_unit_test.php b/modules/gallery_unit_test/views/kohana_unit_test.php
index 2201245c..c5ca6f30 100644
--- a/modules/gallery_unit_test/views/kohana_unit_test.php
+++ b/modules/gallery_unit_test/views/kohana_unit_test.php
@@ -51,8 +51,10 @@ foreach ($results as $class => $methods) {
}
printf(">> TOTAL\t%s: %.2f%%\t%s: %d\t%s: %d\t%s: %d\t%s: %d\n",
- Kohana::lang("unit_test.score"), 100 * ($totals["passed"] / $totals["total"]),
+ Kohana::lang("unit_test.score"),
+ ($totals["total"] ? 100 * ($totals["passed"] / $totals["total"]) : 0),
Kohana::lang("unit_test.total"), $totals["total"],
Kohana::lang("unit_test.passed"), $totals["passed"],
Kohana::lang("unit_test.failed"), $totals["failed"],
Kohana::lang("unit_test.errors"), $totals["errors"]);
+