PHPUnit_TextUI_ResultPrinter::writeProgress PHP Méthode

writeProgress() protected méthode

protected writeProgress ( string $progress )
$progress string
    protected function writeProgress($progress)
    {
        $this->write($progress);
        $this->column++;
        $this->numTestsRun++;
        if ($this->column == $this->maxColumn || $this->numTestsRun == $this->numTests) {
            if ($this->numTestsRun == $this->numTests) {
                $this->write(str_repeat(' ', $this->maxColumn - $this->column));
            }
            $this->write(sprintf(' %' . $this->numTestsWidth . 'd / %' . $this->numTestsWidth . 'd (%3s%%)', $this->numTestsRun, $this->numTests, floor($this->numTestsRun / $this->numTests * 100)));
            if ($this->column == $this->maxColumn) {
                $this->writeNewLine();
            }
        }
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 protected function writeProgress($progress)
 {
     if ($progress == '.') {
         $progress = $this->fab->paintChar('*');
     }
     parent::writeProgress($progress);
 }
All Usage Examples Of PHPUnit_TextUI_ResultPrinter::writeProgress