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 | return $services->getObjectFactory()->createObject( [ |
| 15 | 'class' => Oracle::class, |
| 16 | 'services' => [ |
| 17 | 'MainConfig', |
| 18 | 'UserOptionsManager', |
| 19 | 'HookContainer', |
| 20 | ], |
| 21 | 'optional_services' => [ |
| 22 | 'MobileFrontend.Context', |
| 23 | ], |
| 24 | ] ); |
| 25 | }, |
| 26 | ]; |
| 27 | |
| 28 | // @codeCoverageIgnoreEnd |