Skip to content

Commit

Permalink
Fix writeProgress() for non-verbose mode. Fixes #54.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 5, 2006
1 parent 8bc7807 commit 3db602e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPUnit/TextUI/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public function endTest(PHPUnit_Framework_Test $test)
protected function writeProgress($progress)
{
if ($this->column == 0) {
$this->write(str_repeat(' ', $this->depth - 1));
$this->write(str_repeat(' ', max(0, $this->depth - 1)));
}

$this->write($progress);
Expand Down

0 comments on commit 3db602e

Please sign in to comment.