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 | namespace MediaWiki\Extension\ParserMigration; |
4 | |
5 | use MediaWiki\MediaWikiServices; |
6 | |
7 | // PHP unit does not understand code coverage for this file |
8 | // as the @covers annotation cannot cover a specific file |
9 | // This is fully tested in ServiceWiringTest.php |
10 | // @codeCoverageIgnoreStart |
11 | |
12 | return [ |
13 | 'ParserMigration.Oracle' => static function ( MediaWikiServices $services ): Oracle { |
14 | // @phan-suppress-next-line PhanTypeInvalidCallableArraySize |
15 | return $services->getObjectFactory()->createObject( [ |
16 | // @phan-suppress-next-line PhanTypeInvalidCallableArraySize |
17 | 'class' => Oracle::class, |
18 | 'services' => [ |
19 | 'MainConfig', |
20 | 'UserOptionsManager', |
21 | ], |
22 | 'optional_services' => [ |
23 | 'MobileFrontend.Context', |
24 | ], |
25 | ] ); |
26 | }, |
27 | ]; |
28 | |
29 | // @codeCoverageIgnoreEnd |