Permalink
Browse files

Fix writeProgress() for non-verbose mode. Fixes #54.

  • Loading branch information...
1 parent 8bc7807 commit 3db602e8879efcad406ff2d629550f55ab2f7864 @sebastianbergmann committed Oct 5, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 PHPUnit/TextUI/ResultPrinter.php
@@ -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);

0 comments on commit 3db602e

Please sign in to comment.