From a0aca7ee62387761014c45cc8163e3eb3913d434 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 10 Jan 2010 12:34:55 -0500 Subject: [PATCH] Adding output buffering to htmlreporter fixing issues with tests that send headers like Dispatcher test. --- cake/tests/lib/reporter/cake_html_reporter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/tests/lib/reporter/cake_html_reporter.php b/cake/tests/lib/reporter/cake_html_reporter.php index 53162aa4b..b7e0934e9 100644 --- a/cake/tests/lib/reporter/cake_html_reporter.php +++ b/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 "

$testName

\n"; @@ -240,6 +241,7 @@ class CakeHtmlReporter extends CakeBaseReporter { function paintDocumentEnd() { $baseDir = $this->params['baseDir']; include CAKE_TESTS_LIB . 'templates' . DS . 'footer.php'; + ob_end_flush(); } /**