MDL-40388 Reset globals after each unit test

This commit is contained in:
Jamie Pratt
2013-07-09 11:56:53 +08:00
committed by Damyon Wiese
parent 954ba4bce4
commit 4eff6ed9fe
2 changed files with 26 additions and 0 deletions
+4
View File
@@ -623,6 +623,10 @@ class phpunit_util {
$_SERVER = self::get_global_backup('_SERVER');
$CFG = self::get_global_backup('CFG');
$SITE = self::get_global_backup('SITE');
$_GET = array();
$_POST = array();
$_FILES = array();
$_REQUEST = array();
$COURSE = $SITE;
// reinitialise following globals