From 440f7140ffc7d2a12868363f51565a67481dbb9f Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 6 May 2014 13:07:11 +0200 Subject: [PATCH] Fixed number padding in test runner --- tests/run-all.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/run-all.php b/tests/run-all.php index efdf64c0..fd50b1c4 100644 --- a/tests/run-all.php +++ b/tests/run-all.php @@ -93,7 +93,7 @@ function runAll($filter) foreach ($labels as &$label) $label = str_pad($label, $maxLabelLength + 1, ' '); - $pad = count($testMethods) ? ceil(log10(count($testMethods))) : 0; + $pad = count($testMethods) ? ceil(log10(1 + count($testMethods))) : 0; //run all the methods $success = true;