Beispiel #1
0
 /**
  * Calculates the Code Coverage for the class.
  *
  * @param $codeCoverage array       	
  */
 protected function calculateCodeCoverage(&$codeCoverage)
 {
     $statistics = PHPCoverage_Util_CodeCoverage::getStatistics($codeCoverage, $this->class->getFileName(), $this->class->getStartLine(), $this->class->getEndLine());
     $this->coverage = $statistics['coverage'];
     $this->loc = $statistics['loc'];
     $this->locExecutable = $statistics['locExecutable'];
     $this->locExecuted = $statistics['locExecuted'];
 }
Beispiel #2
0
 /**
  * Calculates the Code Coverage for the class.
  *
  * @param $codeCoverage array       	
  */
 protected function calculateCodeCoverage(&$codeCoverage)
 {
     $statistics = PHPCoverage_Util_CodeCoverage::getStatistics($codeCoverage, $this->filename, 1, $this->loc);
     $this->coverage = $statistics['coverage'];
     $this->loc = $statistics['loc'];
     $this->locExecutable = $statistics['locExecutable'];
     $this->locExecuted = $statistics['locExecuted'];
 }