Page MenuHomeWickedGov Phorge

ServicesTest.php
No OneTemporary

Size
825 B
Referenced Files
None
Subscribers
None

ServicesTest.php

<?php
declare( strict_types = 1 );
use MediaWiki\Extension\Translate\Services;
/**
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @group Database
* @covers \MediaWiki\Extension\Translate\Services
*/
class ServicesTest extends MediaWikiIntegrationTestCase {
public function testNoExceptions() {
$services = Services::getInstance();
$class = new ReflectionClass( Services::class );
$reflectionMethods = $class->getMethods( ReflectionMethod::IS_PUBLIC );
$methods = [];
foreach ( $reflectionMethods as $methodObj ) {
$method = $methodObj->getName();
if ( !$methodObj->isStatic() && preg_match( '/^get[A-Z]/', $method ) ) {
$methods[] = $method;
}
}
foreach ( $methods as $method ) {
$services->$method();
}
$this->assertTrue( true, 'All services can be constructed' );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 07:32 (20 h, 2 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1c/31/c510800fa0e99b212e9a88181f6f
Default Alt Text
ServicesTest.php (825 B)

Event Timeline