setMwGlobals( 'wgMathValidModes', [ 'native' ] ); } public function testSin() { $mml = new MathNativeMML( '\sin' ); $this->assertSame( 'tex', $mml->getInputType() ); $this->assertTrue( $mml->checkTeX() ); $this->assertTrue( $mml->render() ); $this->assertStringContainsString( 'sin', $mml->getMathml() ); } }