paintGroupEnd() публичный Метод

Will paint the page footer if the stack of tests has unwound.
public paintGroupEnd ( string $test_name )
$test_name string Name of test that is ending.
Пример #1
0
 /**
  *    Paints the end of a group test. Will paint the page
  *    footer if the stack of tests has unwound.
  *    @param string $test_name   Name of test that is ending.
  *    @param integer $progress   Number of test cases ending.
  *    @access public
  */
 public function paintGroupEnd($test_name)
 {
     echo '</div>';
     parent::paintGroupEnd($test_name);
     //echo '</h3>Test Suite: "' . $test_name . '" finished.</h3><br />';
     //flush();
 }
Пример #2
0
 /**
  *    Invokes run() on all of the held test cases, instantiating
  *    them if necessary.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @param int $port Port to report test results on
  *    @access public
  */
 function run(&$reporter, $port)
 {
     $count = count($this->_test_cases);
     for ($i = 0; $i < $count; $i++) {
         if (is_string($this->_test_cases[$i])) {
             $class = $this->_test_cases[$i];
             $test =& new $class();
             ob_start();
             $reporter->paintGroupStart($this->getLabel(), $this->getSize());
             $reporter->paintCaseStart($test->getLabel());
             $start = ob_get_contents();
             ob_end_clean();
             ob_start();
             $reporter->paintCaseEnd($test->getLabel());
             $reporter->paintGroupEnd($this->getLabel());
             $end = ob_get_contents();
             ob_end_clean();
             //the guts from SimpleTestCase::run($reporter) where
             $test->_runner = new EclipseRunner($test, $reporter, $start, $end, $port);
             $test->_runner->run();
             $output = $start;
             if ($i + 1 == $count) {
                 $output .= "<done/>";
             }
             $output .= $end;
             $sock = new SimpleSocket("127.0.0.1", $port, 5);
             $sock->write($output);
             $sock->close();
             echo $sock->getError();
         } else {
             $this->_test_cases[$i]->run($reporter, $port);
         }
     }
     return $reporter->getStatus();
 }
Пример #3
0
 /**
  *    Sends a single error to the reporter.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @access public
  */
 function run(&$reporter) {
     $reporter->paintGroupStart($this->getLabel(), $this->getSize());
     $reporter->paintFail('Bad TestSuite [' . $this->getLabel() .
             '] with error [' . $this->_error . ']');
     $reporter->paintGroupEnd($this->getLabel());
     return $reporter->getStatus();
 }
Пример #4
0
 /**
  *    Signals the appropriate end event on the
  *    listener.
  *    @param SimpleReporter $listener    Target for events.
  *    @access public
  */
 function paintEnd(&$listener)
 {
     $listener->paintGroupEnd($this->getName());
 }
Пример #5
0
 /**
  * acceptor for end of test group.
  * final group pops the collected treemap nodes and assigns it to the internal graph property.
  */
 public function paintGroupEnd($message)
 {
     $node = $this->_stack->pop();
     $current = $this->_stack->peek();
     if ($current) {
         if ($node->isFailed()) {
             $current->fail();
         }
         $current->putChild($node);
     } else {
         $this->_graph = $node;
     }
     parent::paintGroupEnd($message);
 }
 /**
  * Signals/Paints the end of a TestSuite. All test cases have run
  * and timers are stopped.
  *
  * @param string $test_name Name of the test that is being run.
  * @return void
  */
 function paintGroupEnd($test_name)
 {
     $this->_timeEnd = $this->_getTime();
     $this->_timeDuration = $this->_timeEnd - $this->_timeStart;
     parent::paintGroupEnd($test_name);
 }
 /**
  * @param string $testName
  */
 public function paintGroupEnd($testName)
 {
     parent::paintGroupEnd($testName);
     $this->junitXMLWriter->endTestSuite();
     if (count($this->getTestList()) == 0) {
         $this->junitXMLWriter->endTestSuites();
     }
 }
 /**
  * @param string $testName
  */
 public function paintGroupEnd($testName)
 {
     parent::paintGroupEnd($testName);
     $this->xmlWriter->endTestSuite();
 }
Пример #9
0
 public function paintGroupEnd($testName)
 {
     parent::paintGroupEnd($testName);
 }
Пример #10
0
 function paintGroupEnd($test_name)
 {
     print $this->_getIndent();
     print "</" . $this->_namespace . "group>\n";
     parent::paintGroupEnd($test_name);
 }