Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding output buffering to htmlreporter fixing issues with tests that…

… send headers like Dispatcher test.
  • Loading branch information...
commit a0aca7ee62387761014c45cc8163e3eb3913d434 1 parent 285ff5e
Mark Story markstory authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  cake/tests/lib/reporter/cake_html_reporter.php
2  cake/tests/lib/reporter/cake_html_reporter.php
View
@@ -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();
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.