From acbaec594ec0bfd638f38f3ca8e49becf6727d27 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 21 May 2014 18:20:26 +0800 Subject: [PATCH] Revert "MDL-45605 Phpunit: Do not call gc_collect_cycles as part of reset." This reverts commit c0f29f18d77759fa0fd96a531c2f014e15fd66a3. --- lib/phpunit/classes/util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index 19e8a95253c..4ee93a63a71 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -106,6 +106,9 @@ class phpunit_util extends testing_util { // Stop any message redirection. phpunit_util::stop_phpmailer_redirection(); + // 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();