diff --git a/tests/run-all.php b/tests/run-all.php index a36db31e..02f286ef 100644 --- a/tests/run-all.php +++ b/tests/run-all.php @@ -1,16 +1,22 @@ class . '::' . $method->name; //ensure every label has the same length - $maxLabelLength = max(array_map('strlen', $labels)); + $maxLabelLength = count($testMethods) > 0 ? max(array_map('strlen', $labels)) : 0; foreach ($labels as &$label) $label = str_pad($label, $maxLabelLength + 1, ' ');