function render(AbstractSourceDecorator $decorator = null) { if ($decorator === null) { $decorator = new DefaultSourceDecorator('.'); } return $decorator->render($this); }
function render($toPath) { $decorator = new DefaultSourceDecorator($toPath, $this->testpath, $this->codepath); echo "Generating project coverage data...\n"; $coverage = $this->sqlite->retrieveProjectCoverage(); echo "done\n"; $decorator->renderSummary($this, $this->retrievePaths(), $this->codepath, false, $coverage[1], $coverage[0], $coverage[2]); $a = $this->codepath; echo "[Step 2 of 2] Rendering per-test coverage...\n"; $decorator->renderTestCoverage($this, $this->testpath, $a); echo "done\n"; }