Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3use MediaWiki\Extension\GlobalWatchlist\SettingsManager;
4use MediaWiki\Logger\LoggerFactory;
5use MediaWiki\MediaWikiServices;
6
7// PHPUnit doesn't understand code coverage for code outside of classes/functions,
8// like service wiring files. This *is* tested though, see
9// tests/phpunit/integration/ServiceWiringTest.php
10// @codeCoverageIgnoreStart
11
12return [
13    'GlobalWatchlistSettingsManager' => static function (
14        MediaWikiServices $services
15    ): SettingsManager {
16        return new SettingsManager(
17            LoggerFactory::getInstance( 'GlobalWatchlist' ),
18            $services->getUserOptionsManager(),
19            $services->getStatsdDataFactory()
20        );
21    },
22];
23
24// @codeCoverageIgnoreEnd