tiny simpletest fix: start and end output buffering a bit more sensibly.

This commit is contained in:
mjollnir_
2008-10-13 10:17:01 +00:00
parent def1439e31
commit 915d745f2c
+4 -2
View File
@@ -247,6 +247,7 @@ class MoodleUnitTestCase extends UnitTestCase {
UnitTestDB::instantiate();
global $DB;
$this->DB =& $DB;
ob_start();
}
/**
@@ -261,8 +262,9 @@ class MoodleUnitTestCase extends UnitTestCase {
parent::tearDown();
// Output buffering
ob_end_flush();
ob_start();
if (ob_get_length() > 0) {
ob_end_flush();
}
}
/**