Page MenuHomeWickedGov Phorge

ServiceWiringTest.php
No OneTemporary

Size
766 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\Notifications\Test;
use MediaWikiIntegrationTestCase;
/**
* Tests ServiceWiring.php
*
* @coversNothing PHPUnit does not support covering annotations for files
* @group Echo
* @group Database
*/
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__ . '/../../ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 18:59 (6 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6e/37/73ef1ac3e4858fb04ae445e03a9d
Default Alt Text
ServiceWiringTest.php (766 B)

Event Timeline