/** * 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']; }
/** * 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']; }