Skip to content

Commit

Permalink
chore: Added padding for the total tests run. (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunogaspar authored and rudowastaken committed Nov 15, 2017
1 parent ff3f1c5 commit 0901b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 0901b0a

Please sign in to comment.