From 878f09ad0dfbb3bee923e1a573163504cbd7b4dd Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 5 May 2014 17:13:26 +0200 Subject: [PATCH] More options to run-all.php Gotta document these some day --- tests/run-all.php | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) 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, ' ');