本文整理汇总了PHP中PHPUnit_Framework_TestCase::markTestIncomplete方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Framework_TestCase::markTestIncomplete方法的具体用法?PHP PHPUnit_Framework_TestCase::markTestIncomplete怎么用?PHP PHPUnit_Framework_TestCase::markTestIncomplete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_Framework_TestCase
的用法示例。
在下文中一共展示了PHPUnit_Framework_TestCase::markTestIncomplete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processResults
/**
* Analyze results of aggregated tests execution and complete test case appropriately
*
* @param array $results
* @param int $passed
* @return void
*/
protected function processResults(array $results, $passed)
{
$totalCountsMessage = sprintf('Passed: %d, Failed: %d, Incomplete: %d, Skipped: %d.', $passed, count($results['PHPUnit_Framework_AssertionFailedError']), count($results['PHPUnit_Framework_IncompleteTestError']), count($results['PHPUnit_Framework_SkippedTestError']));
if ($results['PHPUnit_Framework_AssertionFailedError']) {
$this->_testCase->fail($totalCountsMessage . PHP_EOL . implode(PHP_EOL, $results['PHPUnit_Framework_AssertionFailedError']));
}
if (!$results['PHPUnit_Framework_IncompleteTestError'] && !$results['PHPUnit_Framework_SkippedTestError']) {
return;
}
$message = $totalCountsMessage . PHP_EOL . implode(PHP_EOL, $results['PHPUnit_Framework_IncompleteTestError']) . PHP_EOL . implode(PHP_EOL, $results['PHPUnit_Framework_SkippedTestError']);
if ($results['PHPUnit_Framework_IncompleteTestError']) {
$this->_testCase->markTestIncomplete($message);
} elseif ($results['PHPUnit_Framework_SkippedTestError']) {
$this->_testCase->markTestSkipped($message);
}
}
示例2: markTestIncomplete
/**
* Mark this test as incomplete. Puts extra information in the logs.
*
* @param string $message
*/
public static function markTestIncomplete($message = '')
{
Wikia::log(__METHOD__, '', $message);
parent::markTestIncomplete($message);
}