MediaWiki  1.23.2
GlobalVarConfigTest.php
Go to the documentation of this file.
1 <?php
2 
4 
5  public function provideGet() {
6  $set = array(
7  'wgSomething' => 'default1',
8  'wgFoo' => 'default2',
9  'efVariable' => 'default3',
10  'BAR' => 'default4',
11  );
12 
13  foreach ( $set as $var => $value ) {
14  $GLOBALS[$var] = $value;
15  }
16 
17  return array(
18  array( 'Something', 'wg', 'default1' ),
19  array( 'Foo', 'wg', 'default2' ),
20  array( 'Variable', 'ef', 'default3' ),
21  array( 'BAR', '', 'default4' ),
22  );
23  }
24 
32  public function testGet( $name, $prefix, $expected ) {
33  $config = new GlobalVarConfig( $prefix );
34  $this->assertEquals( $config->get( $name ), $expected );
35  }
36 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
GlobalVarConfigTest\provideGet
provideGet()
Definition: GlobalVarConfigTest.php:5
GlobalVarConfigTest
Definition: GlobalVarConfigTest.php:3
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
GlobalVarConfig
Accesses configuration settings from $GLOBALS.
Definition: GlobalVarConfig.php:28
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
$value
$value
Definition: styleTest.css.php:45
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
GlobalVarConfigTest\testGet
testGet( $name, $prefix, $expected)
Definition: GlobalVarConfigTest.php:32
$GLOBALS
$GLOBALS['IP']
Definition: ComposerHookHandler.php:6