mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving buffer start in CakeHtmlReporter to fix errors when displaying menus.
Adding paintDocumentStart() to CakeTextReporter::paintHeader() to fix issues with test results not being text/plain.
This commit is contained in:
parent
a41678e51f
commit
3dad64c9c0
2 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,6 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
*/
|
||||
function paintHeader($testName) {
|
||||
$this->sendNoCacheHeaders();
|
||||
ob_start();
|
||||
$this->paintDocumentStart();
|
||||
$this->paintTestMenu();
|
||||
echo "<h2>$testName</h2>\n";
|
||||
|
@ -51,6 +50,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
* @return void
|
||||
*/
|
||||
function paintDocumentStart() {
|
||||
ob_start();
|
||||
$baseDir = $this->params['baseDir'];
|
||||
include CAKE_TESTS_LIB . 'templates' . DS . 'header.php';
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@ class CakeTextReporter extends CakeBaseReporter {
|
|||
* @access public
|
||||
*/
|
||||
function paintHeader($test_name) {
|
||||
$this->paintDocumentStart();
|
||||
echo "$test_name\n";
|
||||
flush();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue