prevent division by zero errors
This commit is contained in:
parent
ad12bcd557
commit
a1ac29341b
@ -213,6 +213,11 @@
|
||||
|
||||
//summary
|
||||
$total = count($passed) + count($failed) + count($erred) + count($ignored);
|
||||
|
||||
if ($total === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$countPad = strlen($total);
|
||||
$width = 12 + $countPad + 3 + 6 + 3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user