Adding output buffering to htmlreporter fixing issues with tests that send headers like Dispatcher test.

This commit is contained in:
Mark Story 2010-01-10 12:34:55 -05:00
parent 285ff5eb3b
commit a0aca7ee62

View file

@ -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 @@ class CakeHtmlReporter extends CakeBaseReporter {
function paintDocumentEnd() {
$baseDir = $this->params['baseDir'];
include CAKE_TESTS_LIB . 'templates' . DS . 'footer.php';
ob_end_flush();
}
/**