diff --git a/src/Report/CLI.php b/src/Report/CLI.php index 1392fdd..50b1d93 100644 --- a/src/Report/CLI.php +++ b/src/Report/CLI.php @@ -99,11 +99,18 @@ private function updateCounter(): void { * Update counters so we can show a nice progress bar */ private function addNonTtyCounterMaybe(): void { + $this->lineCounter++; + $this->totalCounter++; if ( $this->lineCounter >= 60 ) { echo ' '; echo $this->makeCounterText(); echo PHP_EOL; $this->lineCounter = 0; + } elseif ( $this->totalCounter === $this->amount ) { + echo str_repeat( ' ', 60 - $this->lineCounter + 1 ); + echo $this->makeCounterText(); + echo PHP_EOL; + $this->lineCounter = 0; } }