Page MenuHomeWickedGov Phorge

ServiceWiringTest.php
No OneTemporary

Size
843 B
Referenced Files
None
Subscribers
None

ServiceWiringTest.php

<?php
/**
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
* used to test the ServiceWiring.php file.
*/
namespace MediaWiki\Skins\Vector\Tests\Integration;
use MediaWikiIntegrationTestCase;
/**
* Partly Tests ServiceWiring.php by ensuring that the call to the
* service does not result in an error.
*
* @coversNothing PHPUnit does not support covering annotations for files
* @group Vector
*/
class ServiceWiringTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideService
*/
public function testService( string $name ) {
$this->getServiceContainer()->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
Aug 19 2026, 17:46 (5 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e9/e9/c63c55cb15a65cdde628a9846a8e
Default Alt Text
ServiceWiringTest.php (843 B)

Event Timeline