diff --git a/tests/MathLaTeXMLTest.php b/tests/MathLaTeXMLTest.php index e2d6f8e..eb68e69 100644 --- a/tests/MathLaTeXMLTest.php +++ b/tests/MathLaTeXMLTest.php @@ -135,12 +135,11 @@ class MathLaTeXMLTest extends MediaWikiTestCase { ); } /** - * Checks the basic functionallity + * Checks the basic functionality * i.e. if the span element is generated right. */ public function testIntegration() { - global $wgMathLaTeXMLTimeout; - $wgMathLaTeXMLTimeout = 20; + $this->setMwGlobals( 'wgMathLaTeXMLTimeout', 20 ); $renderer = MathRenderer::getRenderer( "a+b", array(), MW_MATH_LATEXML ); $real = $renderer->render( true ); $expected = ' a + b a b a+b ';