mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding output buffering to htmlreporter fixing issues with tests that send headers like Dispatcher test.
This commit is contained in:
parent
285ff5eb3b
commit
a0aca7ee62
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
||||||
*/
|
*/
|
||||||
function paintHeader($testName) {
|
function paintHeader($testName) {
|
||||||
$this->sendNoCacheHeaders();
|
$this->sendNoCacheHeaders();
|
||||||
|
ob_start();
|
||||||
$this->paintDocumentStart();
|
$this->paintDocumentStart();
|
||||||
$this->paintTestMenu();
|
$this->paintTestMenu();
|
||||||
echo "<h2>$testName</h2>\n";
|
echo "<h2>$testName</h2>\n";
|
||||||
|
@ -240,6 +241,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
||||||
function paintDocumentEnd() {
|
function paintDocumentEnd() {
|
||||||
$baseDir = $this->params['baseDir'];
|
$baseDir = $this->params['baseDir'];
|
||||||
include CAKE_TESTS_LIB . 'templates' . DS . 'footer.php';
|
include CAKE_TESTS_LIB . 'templates' . DS . 'footer.php';
|
||||||
|
ob_end_flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue