From c0f29f18d77759fa0fd96a531c2f014e15fd66a3 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 19 May 2014 10:10:59 +0800 Subject: [PATCH] MDL-45605 Phpunit: Do not call gc_collect_cycles as part of reset. This takes 25% of the time in running tests and there is no benefit. The behaviour of destructors is the same before/after the patch. Conflicts: lib/phpunit/classes/util.php --- lib/phpunit/classes/util.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index 4ee93a63a71..19e8a95253c 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -106,9 +106,6 @@ 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(); -- 2.43.0