protected function doRenderItemObject(PHPUnit_Util_Report_Node $item, $lowUpperBound, $highLowerBound, $link = NULL, $itemClass = 'coverItem') { return $this->doRenderItem(array('name' => $link != NULL ? $link : $item->getLink(FALSE), 'itemClass' => $itemClass, 'numClasses' => $item->getNumClasses(), 'numTestedClasses' => $item->getNumTestedClasses(), 'testedClassesPercent' => $item->getTestedClassesPercent(), 'numMethods' => $item->getNumMethods(), 'numTestedMethods' => $item->getNumTestedMethods(), 'testedMethodsPercent' => $item->getTestedMethodsPercent(), 'numExecutableLines' => $item->getNumExecutableLines(), 'numExecutedLines' => $item->getNumExecutedLines(), 'executedLinesPercent' => $item->getLineExecutedPercent()), $lowUpperBound, $highLowerBound); }
/** * Constructor. * * @param string $name * @param PHPUnit_Util_Report_Node $parent * @param array $executedLines * @param boolean $yui * @param boolean $highlight * @throws RuntimeException * @access public */ public function __construct($name, PHPUnit_Util_Report_Node $parent = NULL, array $executedLines, $yui = TRUE, $highlight = FALSE) { parent::__construct($name, $parent); $path = $this->getPath(); if (!file_exists($path)) { throw new RuntimeException(); } $this->executedLines = $executedLines; $this->highlight = $highlight; $this->yui = $yui; $this->codeLines = $this->loadFile($path); $this->calculateStatistics(); }