Permalink
Browse files

Adding output buffering to htmlreporter fixing issues with tests that…

… send headers like Dispatcher test.
  • Loading branch information...
1 parent 285ff5e commit a0aca7ee62387761014c45cc8163e3eb3913d434 @markstory markstory committed Jan 10, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 cake/tests/lib/reporter/cake_html_reporter.php
View
2 cake/tests/lib/reporter/cake_html_reporter.php
@@ -38,6 +38,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
*/
function paintHeader($testName) {
$this->sendNoCacheHeaders();
+ ob_start();
$this->paintDocumentStart();
$this->paintTestMenu();
echo "<h2>$testName</h2>\n";
@@ -240,6 +241,7 @@ function _queryString($url) {
function paintDocumentEnd() {
$baseDir = $this->params['baseDir'];
include CAKE_TESTS_LIB . 'templates' . DS . 'footer.php';
+ ob_end_flush();
}
/**

0 comments on commit a0aca7e

Please sign in to comment.