Ejemplo n.º 1
0
 function endTestRun()
 {
     parent::endTestRun();
     if ($this->out) {
         $this->out->write($this->logger->getXML());
         $this->out->close();
     }
 }
 function endTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     parent::endTestSuite($suite);
     $sb = "Tests run: " . $this->getRunCount();
     $sb .= ", Failures: " . $this->getFailureCount();
     $sb .= ", Errors: " . $this->getErrorCount();
     $sb .= ", Time elapsed: " . $this->getElapsedTime();
     $sb .= " sec\n";
     if ($this->out != NULL) {
         $this->out->write($sb);
         $this->out->close();
     }
 }
Ejemplo n.º 3
0
 function endTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     $sb = "Test: " . $suite->getName();
     $sb .= ", Run: " . $this->getRunCount();
     $sb .= ", Failures: " . $this->getFailureCount();
     $sb .= ", Errors: " . $this->getErrorCount();
     $sb .= ", Incomplete: " . $this->getIncompleteCount();
     $sb .= ", Skipped: " . $this->getSkippedCount();
     $sb .= ", Time elapsed: " . sprintf('%0.5f', $this->getElapsedTime()) . " s\n";
     parent::endTestSuite($suite);
     if ($this->out != NULL) {
         $this->out->write($sb);
         $this->out->close();
     }
 }
Ejemplo n.º 4
0
 function endTestRun()
 {
     parent::endTestRun();
     if ($this->out != NULL) {
         $this->out->close();
     }
 }