mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing the loading of the HtmlCodeCoverageReport class
This commit is contained in:
parent
ecc6a22b3b
commit
6f232c4543
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue