From 70517518a0a4520b859b8aa68557362e1b9fc482 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 31 May 2019 20:05:03 +0200 Subject: [PATCH] Pass no argument to MathRender::render The function does not take any argument, so remove the provided bool Change-Id: Ib4a51c4a95396a6db8359ceefe81db0a998f9197 --- src/SpecialMathStatus.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SpecialMathStatus.php b/src/SpecialMathStatus.php index ed66edf..2163a4c 100644 --- a/src/SpecialMathStatus.php +++ b/src/SpecialMathStatus.php @@ -78,7 +78,7 @@ class SpecialMathStatus extends SpecialPage { $svgRef = file_get_contents( __DIR__ . '/../images/reference.svg' ); $svgRefNoSpeech = file_get_contents( __DIR__ . '/../images/reference-nospeech.svg' ); $renderer = MathRenderer::getRenderer( "a+b", [], 'mathml' ); - $this->assertTrue( $renderer->render( true ), "Rendering of a+b in plain MathML mode" ); + $this->assertTrue( $renderer->render(), "Rendering of a+b in plain MathML mode" ); $real = str_replace( "\n", '', $renderer->getHtmlOutput() ); $expected = '+'; $this->assertContains( $expected, $real, "Checking the presence of '+' in the MathML output" ); @@ -112,7 +112,7 @@ class SpecialMathStatus extends SpecialPage { */ public function testLaTeXMLIntegration() { $renderer = MathRenderer::getRenderer( "a+b", [], 'latexml' ); - $this->assertTrue( $renderer->render( true ), "Rendering of a+b in LaTeXML mode" ); + $this->assertTrue( $renderer->render(), "Rendering of a+b in LaTeXML mode" ); // phpcs:ignore Generic.Files.LineLength.TooLong $expected = 'a+bab{\displaystyle a+b}'; $real = preg_replace( "/\n\\s*/", '', $renderer->getHtmlOutput() );