Skip to content

Commit

Permalink
Moving buffer start in CakeHtmlReporter to fix errors when displaying…
Browse files Browse the repository at this point in the history
… menus.

Adding paintDocumentStart() to CakeTextReporter::paintHeader() to fix issues with test results not being text/plain.
  • Loading branch information
markstory committed Jan 10, 2010
1 parent a41678e commit 3dad64c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cake/tests/lib/reporter/cake_html_reporter.php
Expand Up @@ -38,7 +38,6 @@ class CakeHtmlReporter extends CakeBaseReporter {
*/
function paintHeader($testName) {
$this->sendNoCacheHeaders();
ob_start();
$this->paintDocumentStart();
$this->paintTestMenu();
echo "<h2>$testName</h2>\n";
Expand All @@ -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';
}
Expand Down
1 change: 1 addition & 0 deletions cake/tests/lib/reporter/cake_text_reporter.php
Expand Up @@ -72,6 +72,7 @@ function paintFooter($test_name) {
* @access public
*/
function paintHeader($test_name) {
$this->paintDocumentStart();
echo "$test_name\n";
flush();
}
Expand Down

0 comments on commit 3dad64c

Please sign in to comment.