public function endTestRun()
 {
     ob_start();
     $this->clover->process($this->result);
     $contents = ob_get_contents();
     ob_end_clean();
     if ($this->out) {
         $this->out->write($contents);
         $this->out->close();
     }
     parent::endTestRun();
 }
 public function endTestRun()
 {
     $coverage = $this->result->getCodeCoverage();
     if (!empty($coverage)) {
         $clover = new PHP_CodeCoverage_Report_Clover();
         $contents = $clover->process($coverage);
         if ($this->out) {
             $this->out->write($contents);
             $this->out->close();
         }
     }
     parent::endTestRun();
 }
 public function endTestRun()
 {
     parent::endTestRun();
     $sb = "Total tests 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";
     if ($this->out != NULL) {
         $this->out->write($sb);
         $this->out->close();
     }
 }
 public function endTestRun()
 {
     if (version_compare($this->version, '3.5.0') >= 0) {
         require_once 'PHP/CodeCoverage/Report/Clover.php';
         $coverage = $this->result->getCodeCoverage();
         $clover = new PHP_CodeCoverage_Report_Clover();
         $contents = $clover->process($coverage);
     } else {
         require_once 'PHPUnit/Util/Log/CodeCoverage/XML/Clover.php';
         $clover = new PHPUnit_Util_Log_CodeCoverage_XML_Clover(null);
         ob_start();
         $clover->process($this->result);
         $contents = ob_get_contents();
         ob_end_clean();
     }
     if ($this->out) {
         $this->out->write($contents);
         $this->out->close();
     }
     parent::endTestRun();
 }
 public function endTestRun()
 {
     parent::endTestRun();
     if ($this->out != NULL) {
         $this->out->close();
     }
 }
Пример #6
0
 public function endTestRun()
 {
     parent::endTestRun();
     if ($this->out) {
         $this->out->write($this->logger->getXML());
         $this->out->close();
     }
 }
 public function endTestRun()
 {
     $coverage = $this->result->getCodeCoverage();
     if (!empty($coverage)) {
         if (class_exists('PHP_CodeCoverage_Report_Crap4j')) {
             $crap = new PHP_CodeCoverage_Report_Crap4j();
         } elseif (class_exists('\\SebastianBergmann\\CodeCoverage\\Report\\Crap4j')) {
             $crapClass = '\\SebastianBergmann\\CodeCoverage\\Report\\Crap4j';
             $crap = new $crapClass();
         }
         $contents = $crap->process($coverage);
         if ($this->out) {
             $this->out->write($contents);
             $this->out->close();
         }
     }
     parent::endTestRun();
 }