本文整理匯總了PHP中TextReporter::paintGroupStart方法的典型用法代碼示例。如果您正苦於以下問題:PHP TextReporter::paintGroupStart方法的具體用法?PHP TextReporter::paintGroupStart怎麽用?PHP TextReporter::paintGroupStart使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TextReporter
的用法示例。
在下文中一共展示了TextReporter::paintGroupStart方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: paintGroupStart
/**
* Signals / Paints the beginning of a TestSuite executing.
* Starts the timer for the TestSuite execution time.
*
* @param
* @return void
*/
function paintGroupStart($test_name, $size)
{
if (empty($this->_timeStart)) {
$this->_timeStart = $this->_getTime();
}
parent::paintGroupStart($test_name, $size);
}
示例2: paintGroupStart
function paintGroupStart($test_name, $size)
{
parent::paintGroupStart($test_name, $size);
//TODO: make this less fragile
if (!$this->first_group_test && strpos($test_name, "Group test in") === 0) {
$this->first_group_test = true;
print "=========== {$test_name} ===========\n";
}
}
示例3: paintGroupStart
/**
* Display the start of each test case
*
* @param string $test_case
* @param int $size
*/
function paintGroupStart($test_case, $size)
{
parent::paintGroupStart($test_case, $size);
print "\nTest Case: {$test_case}\n";
}
示例4: paintGroupStart
/**
* Paints the start of a group test. Will also paint
* the page header and footer if this is the
* first test. Will stash the size if the first
* start.
* @param string $test_name Name of test that is starting.
* @param integer $size Number of test cases starting.
* @access public
*/
function paintGroupStart($test_name, $size) {
parent::paintGroupStart($test_name, $size);
if ($this->group_depth == 0) {
//echo $test_name."\n";
//ob_start();
$this->_groupSize = $size;
} else if ($this->group_depth == 1) {
// echo $test_name."\n";
//ob_start();
$this->_out[$this->group_depth] = array();
$this->_starttime = time()+microtime(true);
$this->fileName = $test_name;
//$this->group_tests[] = array('size'=>$size,'passed'=>0,'failed'=>0,'tests'=>array());
//$this->current_group = &$this->group_tests[count($this->group_tests)-1];
} else if ($this->group_depth == 2) {
$this->suiteName = $test_name;
} else if ($this->group_depth == 3) {
//echo $test_name."\n";
//ob_start();
$this->_startsubtime = time()+microtime(true);
$this->testFileName = $test_name;
//$this->current_group['tests'][] = array('size'=>$size,'passed'=>0,'failed'=>0,'tests'=>array());
//$this->current_group = $this->current_group['tests'][count($this->current_group['tests'])-1];
} else if ($this->group_depth ==4) {
$this->testFileName = $test_name;
} else {
//$this->testSuiteName = $test_name;
//$this->testFileName = $test_name;
}
$this->group_depth++;
}