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\SecurePoll; |
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 SecurePollServiceWiringTest.php |
10 | // @codeCoverageIgnoreStart |
11 | |
12 | return [ |
13 | 'SecurePoll.ActionPageFactory' => static function ( MediaWikiServices $services ): ActionPageFactory { |
14 | return new ActionPageFactory( |
15 | $services->getObjectFactory(), |
16 | $services->getUserOptionsLookup(), |
17 | $services->getLanguageFallback() |
18 | ); |
19 | }, |
20 | 'SecurePoll.TranslationRepo' => static function ( MediaWikiServices $services ): TranslationRepo { |
21 | return new TranslationRepo( |
22 | $services->getDBLoadBalancerFactory(), |
23 | $services->getWikiPageFactory(), |
24 | $services->getMainConfig() |
25 | ); |
26 | } |
27 | ]; |
28 | |
29 | // @codeCoverageIgnoreEnd |