diff --git a/tests/phpunit/MathMathMLTest.php b/tests/phpunit/MathMathMLTest.php index e9da2692e..5a4c2e845 100644 --- a/tests/phpunit/MathMathMLTest.php +++ b/tests/phpunit/MathMathMLTest.php @@ -186,7 +186,7 @@ class MathMathMLTest extends MediaWikiTestCase { public function testintegrationTestWithLinks() { $p = MediaWikiServices::getInstance()->getParserFactory()->create(); $po = ParserOptions::newFromAnon(); - $t = new Title(); + $t = Title::newFromText( __METHOD__ ); $res = $p->parse( '[[test|a+b]]', $t, $po )->getText(); $this->assertContains( '', $res ); $this->assertContains( 'png', $res );