Skip to content

Commit

Permalink
Merge branch 'w41_MDL-35714_m23_testgc' of git://github.com/skodak/mo…
Browse files Browse the repository at this point in the history
…odle into MOODLE_23_STABLE
  • Loading branch information
stronk7 committed Oct 8, 2012
2 parents c116bd7 + 2104c9f commit 85b1e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/phpunit/classes/util.php
Expand Up @@ -544,6 +544,9 @@ public static function reset_dataroot() {
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();

// reset global $DB in case somebody mocked it
$DB = self::get_global_backup('DB');

Expand Down

0 comments on commit 85b1e97

Please sign in to comment.