diff --git a/tests/phpunit/SimpleCaptcha/CaptchaTest.php b/tests/phpunit/SimpleCaptcha/CaptchaTest.php index 81a44d2fa..2329212dc 100644 --- a/tests/phpunit/SimpleCaptcha/CaptchaTest.php +++ b/tests/phpunit/SimpleCaptcha/CaptchaTest.php @@ -1,6 +1,7 @@ globalSettings; + $globalsToStash = []; + foreach ( $keys as $key ) { + $globalsToStash["wg$key"] = $GLOBALS["wg$key"]; + } + $this->setMwGlobals( $globalsToStash ); + $info = [ 'globals' => [], 'callbacks' => [],