use MediaWiki\MediaWikiServices;
+use Wikimedia\TestingAccessWrapper;
+
$optionsWithoutArgs = [ 'verbose' ];
require_once __DIR__ . '/commandLine.inc';
public $maxLength = 20;
public $maxTemplates = 5;
// public $outputTypes = [ 'OT_HTML', 'OT_WIKI', 'OT_PREPROCESS' ];
- public $entryPoints = [ 'testSrvus', 'testPst', 'testPreprocess' ];
+ public $entryPoints = [ 'fuzzTestSrvus', 'fuzzTestPst', 'fuzzTestPreprocess' ];
public $verbose = false;
/**
$options->setTemplateCallback( [ $this, 'templateHook' ] );
$options->setTimestamp( wfTimestampNow() );
$this->output = call_user_func(
- [ MediaWikiServices::getInstance()->getParser(), $this->entryPoint ],
+ [ TestingAccessWrapper::newFromObject(
+ MediaWikiServices::getInstance()->getParser()
+ ), $this->entryPoint ],
$this->mainText,
$this->title,
$options