mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 20:36:42 +01:00
Merge branch 'w41_MDL-35714_m24_testgc' of git://github.com/skodak/moodle
This commit is contained in:
commit
311eb89695
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user