Exemple #1
0
 public function run(PHPUnit_Framework_TestResult $result = NULL)
 {
     if ($result === NULL) {
         $result = $this->createResult();
     }
     parent::run($result);
     if ($result->getCollectCodeCoverageInformation()) {
         $data = unserialize(file_get_contents(getenv('CFX_TEST_WEB_HOST') . "/vendor/nthc/cfx/testlib/coverage.php?id={$this->testId}"));
         $result->getCodeCoverage()->append($data, $this);
     }
     return $result;
 }