setMwGlobals( 'wgLanguageCode', $options['siteLangCode'] ); } if ( isset( $options['fallbackMap'] ) ) { $this->setService( 'LocalisationCache', $this->getMockLocalisationCache( 1, $options['fallbackMap'] ) ); } return Language::class; } private function callMethod( $callee, $method, ...$args ) { if ( $method === 'getFirst' ) { $method = 'getFallbackFor'; } elseif ( $method === 'getAll' ) { $method = 'getFallbacksFor'; } elseif ( $method === 'getAllIncludingSiteLanguage' ) { $method = 'getFallbacksIncludingSiteLanguage'; } return $this->traitCallMethod( $callee, $method, ...$args ); } private function getMessagesKey() { return LanguageFallback::MESSAGES; } private function getStrictKey() { return LanguageFallback::STRICT; } }