getEngine()->getInterpreter(); $interpreter->callFunction( $interpreter->loadString( 'mw.text.stripTest = ...', 'fortest' ), $this->getEngine()->getParser()->insertStripItem( 'ok' ) ); } function getTestModules() { return parent::getTestModules() + array( 'TextLibraryTests' => __DIR__ . '/TextLibraryTests.lua', ); } }