本文整理汇总了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++;
}