本文整理汇总了PHP中PHPUnit_TextUI_ResultPrinter::writeProgress方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_TextUI_ResultPrinter::writeProgress方法的具体用法?PHP PHPUnit_TextUI_ResultPrinter::writeProgress怎么用?PHP PHPUnit_TextUI_ResultPrinter::writeProgress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_TextUI_ResultPrinter
的用法示例。
在下文中一共展示了PHPUnit_TextUI_ResultPrinter::writeProgress方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: writeProgress
/**
* {@inheritdoc}
*/
protected function writeProgress($progress)
{
if ($progress == '.') {
$progress = $this->fab->paintChar('*');
}
parent::writeProgress($progress);
}
示例2: writeProgress
/**
* {@inheritdoc}
*/
protected function writeProgress($progress)
{
if ($this->debug) {
return parent::writeProgress($progress);
}
$this->scoreboard->score($progress);
}
示例3: writeProgress
/**
* {@inheritdoc}
*/
protected function writeProgress($progress)
{
if ($this->debug) {
parent::writeProgress($progress);
return;
}
$this->printClassName();
$this->printTestCaseStatus('', $progress);
}
示例4: writeProgress
/**
* @param string $progress
*/
protected function writeProgress($progress)
{
static $deletedHeader = false;
if (!$deletedHeader) {
if (ob_get_length() > 0) {
ob_end_clean();
$deletedHeader = true;
}
}
parent::writeProgress($progress);
}
示例5: writeProgress
/**
* {@inheritdoc}
*/
protected function writeProgress($progress)
{
switch ($progress) {
case 'E':
return parent::writeProgress($this->errorEmoji);
case 'F':
return parent::writeProgress($this->failureEmoji);
case 'I':
return parent::writeProgress($this->incompleteEmoji);
case 'R':
return parent::writeProgress($this->riskyEmoji);
case 'S':
return parent::writeProgress($this->skippedEmoji);
case '.':
return parent::writeProgress($this->passEmoji);
default:
return parent::writeProgress($progress);
}
}
示例6: writeProgress
protected function writeProgress($progress)
{
if ($this->_getProgressBar()) {
if ($progress != '.') {
echo $progress . "\n";
}
$t = round(array_sum($this->_expectedTimes) - $this->_currentProgress, 1);
if ($t > 120) {
$t = floor($t / 60) . ' min ' . $t % 60 . ' sec';
} else {
$t = $t . ' sec';
}
$this->_getProgressBar()->update($this->_currentProgress, $this->_currentTest . '/' . count($this->_expectedTimes) . ' noch ' . $t);
} else {
return parent::writeProgress($progress);
}
}
示例7: writeProgress
protected function writeProgress($progress)
{
if (!$this->silent) {
parent::writeProgress($progress);
}
}