Fixing the loading of the HtmlCodeCoverageReport class

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-12 02:06:50 -04:30
parent ecc6a22b3b
commit 6f232c4543

View file

@ -157,8 +157,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
* @return void * @return void
*/ */
public function paintCoverage(array $coverage) { public function paintCoverage(array $coverage) {
$file = dirname(dirname(__FILE__)) . '/coverage/html_coverage_report.php'; App::uses('HtmlCoverageReport', 'TestSuite/Coverage');
include_once $file;
$reporter = new HtmlCoverageReport($coverage, $this); $reporter = new HtmlCoverageReport($coverage, $this);
echo $reporter->report(); echo $reporter->report();
} }