diff --git a/src/Printer.php b/src/Printer.php index 9600b29..5249185 100644 --- a/src/Printer.php +++ b/src/Printer.php @@ -44,7 +44,9 @@ protected function writeProgress($progress) $progress = static::$symbols[$progress]; } - $this->write("({$this->numTestsRun}/{$this->numTests}) {$progress} {$this->testRow}" . PHP_EOL); + $padding = str_pad($this->numTestsRun, strlen($this->numTests), ' ', STR_PAD_LEFT); + + $this->write("({$padding}/{$this->numTests}) {$progress} {$this->testRow}" . PHP_EOL); } /**