PHPUnit_TextUI_ResultPrinter::writeProgressWithColor PHP Méthode

writeProgressWithColor() protected méthode

Writes progress with a color sequence if colors are enabled.
protected writeProgressWithColor ( string $color, string $buffer )
$color string
$buffer string
    protected function writeProgressWithColor($color, $buffer)
    {
        $buffer = $this->formatWithColor($color, $buffer);
        $this->writeProgress($buffer);
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 protected function writeProgressWithColor($color, $buffer)
 {
     if ($this->debug) {
         parent::writeProgressWithColor($color, $buffer);
     }
     $this->printClassName();
     $this->printTestCaseStatus($color, $buffer);
 }