From 0b6ed3ce2fad57721f2e45da0c2fba2f7bb930df Mon Sep 17 00:00:00 2001 From: "Moritz Schubotz (Physikerwelt)" Date: Mon, 17 Mar 2014 07:55:15 +0000 Subject: [PATCH] Improvement of LaTeXML integration tests * use setMwGlobals to set the globals Change-Id: I253c75f93fe6fa098b1b6f462129148782db2fa7 --- tests/MathLaTeXMLTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ';