/** * 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); }
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"; } }
/** * 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"; }
/** * 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++; }