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
*/
public function paintCoverage(array $coverage) {
$file = dirname(dirname(__FILE__)) . '/coverage/html_coverage_report.php';
include_once $file;
App::uses('HtmlCoverageReport', 'TestSuite/Coverage');
$reporter = new HtmlCoverageReport($coverage, $this);
echo $reporter->report();
}