/** * 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(); }