Page MenuHomeWickedGov Phorge

ServiceWiringTest.php
No OneTemporary

Size
803 B
Referenced Files
None
Subscribers
None

ServiceWiringTest.php

<?php
/**
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
* used to test the ServiceWiring.php file.
*/
namespace MediaWiki\Extension\Disambiguator\Tests;
use MediaWiki\MediaWikiServices;
use MediaWikiIntegrationTestCase;
/**
* Tests ServiceWiring.php
*
* @coversNothing PHPUnit does not support covering annotations for files
* @group Disambiguator
*/
class ServiceWiringTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideService
*/
public function testService( string $name ) {
MediaWikiServices::getInstance()->get( $name );
$this->addToAssertionCount( 1 );
}
public static function provideService() {
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 23:55 (2 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fc/b2/f8099693ac0c50bdfe86221be8de
Default Alt Text
ServiceWiringTest.php (803 B)

Event Timeline