Permalink
Browse files

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.
  • Loading branch information...
1 parent a41678e commit 3dad64c9c0c274cb26faddacad4f41002a9f59d0 @markstory markstory committed Jan 10, 2010
@@ -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 @@ function paintHeader($testName) {
* @return void
*/
function paintDocumentStart() {
+ ob_start();
$baseDir = $this->params['baseDir'];
include CAKE_TESTS_LIB . 'templates' . DS . 'header.php';
}
@@ -72,6 +72,7 @@ function paintFooter($test_name) {
* @access public
*/
function paintHeader($test_name) {
+ $this->paintDocumentStart();
echo "$test_name\n";
flush();
}

0 comments on commit 3dad64c

Please sign in to comment.