Merge branch 'w41_MDL-35714_m24_testgc' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-10-08 22:51:45 +02:00
commit 311eb89695

View File

@ -547,6 +547,9 @@ class phpunit_util {
public static function reset_all_data($logchanges = false) {
global $DB, $CFG, $USER, $SITE, $COURSE, $PAGE, $OUTPUT, $SESSION, $GROUPLIB_CACHE;
// Release memory and indirectly call destroy() methods to release resource handles, etc.
gc_collect_cycles();
// Show any unhandled debugging messages, the runbare() could already reset it.
self::display_debugging_messages();
self::reset_debugging();