本文整理汇总了PHP中PHPUnit_TextUI_ResultPrinter::addIncompleteTest方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_TextUI_ResultPrinter::addIncompleteTest方法的具体用法?PHP PHPUnit_TextUI_ResultPrinter::addIncompleteTest怎么用?PHP PHPUnit_TextUI_ResultPrinter::addIncompleteTest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_TextUI_ResultPrinter
的用法示例。
在下文中一共展示了PHPUnit_TextUI_ResultPrinter::addIncompleteTest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addIncompleteTest
/**
* Incomplete test.
*
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
*/
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
{
$message = 'was incomplete';
$message = 'skipped';
$statusMessage = $test->getStatusMessage();
if (strlen($statusMessage)) {
$message .= ' (' . $statusMessage . ')';
}
$this->write($this->colors ? Stagehand_TestRunner_Coloring::yellow($message) : $message);
parent::addIncompleteTest($test, $e, $time);
}
示例2: addIncompleteTest
/**
* Incomplete test.
*
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
*/
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
{
parent::addIncompleteTest($test, $e, $time);
wfDebugLog($this->logChannel, 'Incomplete test ' . $this->getTestName($test) . ': ' . $this->getErrorName($e));
}
示例3: addIncompleteTest
/**
* Incomplete test.
*
* @param PHPUnit_Framework_Test $test
* @param Exception $e
* @param float $time
*/
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
{
if (!$this->colors) {
parent::addIncompleteTest($test, $e, $time);
return;
}
$this->writeProgress(Stagehand_TestRunner_Coloring::yellow('I'));
$this->lastTestFailed = TRUE;
}
示例4: addIncompleteTest
public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time)
{
return parent::addIncompleteTest($test, $e, $time);
}
示例5: addIncompleteTest
/**
* {@inheritdoc}
*/
public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time)
{
if ($this->debug) {
return parent::addIncompleteTest($test, $e, $time);
}
$this->writeProgress('pending');
$this->lastTestFailed = TRUE;
}