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 | |
3 | use MediaWiki\Config\ServiceOptions; |
4 | use MediaWiki\Extension\IPReputation\Services\IPReputationIPoidDataLookup; |
5 | use MediaWiki\Logger\LoggerFactory; |
6 | use MediaWiki\MediaWikiServices; |
7 | |
8 | // PHP unit does not understand code coverage for this file |
9 | // as the @covers annotation cannot cover a specific file |
10 | // This is fully tested in ServiceWiringTest.php |
11 | // @codeCoverageIgnoreStart |
12 | |
13 | return [ |
14 | 'IPReputationIPoidDataLookup' => static function ( |
15 | MediaWikiServices $services |
16 | ): IPReputationIPoidDataLookup { |
17 | return new IPReputationIPoidDataLookup( |
18 | new ServiceOptions( |
19 | IPReputationIPoidDataLookup::CONSTRUCTOR_OPTIONS, |
20 | $services->getMainConfig() |
21 | ), |
22 | $services->getFormatterFactory(), |
23 | $services->getHttpRequestFactory(), |
24 | $services->getMainWANObjectCache(), |
25 | LoggerFactory::getInstance( 'IPReputation' ) |
26 | ); |
27 | }, |
28 | ]; |
29 | // @codeCoverageIgnoreEnd |