Debian Codegraph @

skins/Vector/tests/phpunit/integration/ServiceWiringTest.php

raw symbols SCIP
1 <?php
2
3 /**
4 * Copy of CentralAuth's CentralAuthServiceWiringTest.php
5 * used to test the ServiceWiring.php file.
6 */
7
8 namespace MediaWiki\Skins\Vector\Tests\Integration;
9
10 use MediaWikiIntegrationTestCase;
11
12 /**
13 * Partly Tests ServiceWiring.php by ensuring that the call to the
14 * service does not result in an error.
15 *
16 * @coversNothing PHPUnit does not support covering annotations for files
17 * @group Vector
18 */
19 class ServiceWiringTest extends MediaWikiIntegrationTestCase {
20 /**
21 * @dataProvider provideService
22 */
23 public function testService( string $name ) {
24 $this->getServiceContainer()->get( $name );
25 $this->addToAssertionCount( 1 );
26 }
27
28 public static function provideService() {
29 $wiring = require __DIR__ . '/../../../includes/ServiceWiring.php';
30 foreach ( $wiring as $name => $_ ) {
31 yield $name => [ $name ];
32 }
33 }
34 }