function DrupalReporter::paintGroupStart in SimpleTest 5
Same name and namespace in other branches
- 6 drupal_reporter.php \DrupalReporter::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.
@access public
Parameters
string $test_name Name of test that is starting.:
integer $size Number of test cases starting.:
1 call to DrupalReporter::paintGroupStart()
File
- ./
drupal_reporter.php, line 105
Class
- DrupalReporter
- Minimal drupal displayer. Accumulates output to $_output. Based on HtmlReporter by Marcus Baker
Code
function paintGroupStart($test_name, $size, $extra = '') {
$this->_progress_stack[] = $this->_progress;
$this->_progress = 0;
$this->_exceptions_stack[] = $this->_exceptions;
$this->_exceptions = 0;
$this->_fails_stack[] = $this->_fails;
$this->_fails = 0;
$this->_passes_stack[] = $this->_passes;
$this->_passes = 0;
$this->form_depth[] = $test_name;
$this
->writeToLastField($this->form, array(
'#type' => 'fieldset',
'#title' => $test_name,
'#weight' => $this->weight++,
), $this->form_depth);
if (!isset($this->_size)) {
$this->_size = $size;
}
if (($c = count($this->test_info_stack)) > 0) {
$info = $this->test_info_stack[$c - 1];
$this
->writeContent('<strong>' . $info['name'] . '</strong>: ' . $info['desc'], $this
->getParentWeight());
}
$this->_test_stack[] = $test_name;
}