Debian Codegraph @

extensions/CategoryTree/tests/phpunit/ServiceWiringTest.php

raw symbols SCIP
1 <?php
2
3 /**
4 * Copy of CentralAuth's CentralAuthServiceWiringTest.php
5 * as it could not be included as it's in another extension.
6 */
7
8 namespace MediaWiki\Extension\CategoryTree\Tests;
9
10 use MediaWikiIntegrationTestCase;
11
12 /**
13 * @coversNothing
14 */
15 class ServiceWiringTest extends MediaWikiIntegrationTestCase {
16 /**
17 * @dataProvider provideService
18 */
19 public function testService( string $name ) {
20 $this->getServiceContainer()->get( $name );
21 $this->addToAssertionCount( 1 );
22 }
23
24 public static function provideService() {
25 $wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
26 foreach ( $wiring as $name => $_ ) {
27 yield $name => [ $name ];
28 }
29 }
30 }