mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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.
This commit is contained in:
parent
a929fd50f9
commit
726b011050
1 changed files with 0 additions and 3 deletions
|
@ -112,9 +112,6 @@ class phpunit_util extends testing_util {
|
||||||
// Stop any message redirection.
|
// Stop any message redirection.
|
||||||
phpunit_util::stop_event_redirection();
|
phpunit_util::stop_event_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.
|
// Show any unhandled debugging messages, the runbare() could already reset it.
|
||||||
self::display_debugging_messages();
|
self::display_debugging_messages();
|
||||||
self::reset_debugging();
|
self::reset_debugging();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue