4 * @covers ParserFactory
6 class ParserFactoryTest
extends MediaWikiUnitTestCase
{
7 use FactoryArgTestTrait
;
9 protected static function getFactoryClass() {
10 return ParserFactory
::class;
13 protected static function getInstanceClass() {
17 protected static function getFactoryMethodName() {
21 protected static function getExtraClassArgCount() {
22 // The parser factory itself is passed to the parser
26 protected function getOverriddenMockValueForParam( ReflectionParameter
$param ) {
27 if ( $param->getPosition() === 0 ) {
28 return [ $this->createMock( MediaWiki\Config\ServiceOptions
::class ) ];