protected function writeFinishedTest(\PHPUnit_Framework_TestCase $test) { if ($this->isDetailed($test)) { return; } if ($this->output->isInteractive()) { $this->getTestMessage($test)->prepend("\r")->width($this->columns[0])->write(); return; } if ($this->message) { $this->message('')->width($this->columns[0] - $this->message->apply('strip_tags')->getLength())->write(); } }
protected function writeFinishedTest(\PHPUnit_Framework_TestCase $test) { if ($this->isDetailed($test)) { return; } $conditionalFails = ""; $numFails = count($this->fails); if ($numFails == 1) { $conditionalFails = "[F]"; } elseif ($numFails) { $conditionalFails = "{$numFails}x[F]"; } $conditionalLen = strlen($conditionalFails) + 1; $conditionalFails = "<error>{$conditionalFails}</error> "; if ($this->output->isInteractive()) { $msg = $this->getTestMessage($test)->prepend("\r"); $msg->width($this->columns[0] - $conditionalLen)->append($conditionalFails)->write(); return; } if ($this->message) { $this->message('')->width($this->columns[0] - $this->message->apply('strip_tags')->getLength() - $conditionalLen)->append($conditionalFails)->write(); } }