protected function PHPUnit_TextUI_ResultPrinter::writeProgress in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::writeProgress()
Parameters
string $progress:
2 calls to PHPUnit_TextUI_ResultPrinter::writeProgress()
- PHPUnit_TextUI_ResultPrinter::endTest in vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php - A test ended.
- PHPUnit_TextUI_ResultPrinter::writeProgressWithColor in vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php - Writes progress with a color sequence if colors are enabled.
File
- vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php, line 522
Class
- PHPUnit_TextUI_ResultPrinter
- Prints the result of a TextUI TestRunner run.
Code
protected function writeProgress($progress) {
$this
->write($progress);
$this->column++;
$this->numTestsRun++;
if ($this->column == $this->maxColumn) {
$this
->write(sprintf(' %' . $this->numTestsWidth . 'd / %' . $this->numTestsWidth . 'd (%3s%%)', $this->numTestsRun, $this->numTests, floor($this->numTestsRun / $this->numTests * 100)));
$this
->writeNewLine();
}
}