This will allow for documentation of individual configuration
options.
Change-Id: I180bc742c96985c2a8358aef814d993fca9aba84
protected function extractConfig( array $info ) {
if ( isset( $info['config'] ) ) {
foreach ( $info['config'] as $key => $val ) {
- $this->globals["wg$key"] = $val;
+ if ( $key[0] !== '@' ) {
+ $this->globals["wg$key"] = $val;
+ }
}
$this->processed[] = 'config';
}
'config' => array(
'Bar' => 'somevalue',
'Foo' => 10,
+ '@IGNORED' => 'yes',
),
) + self::$default;
$processor->extractInfo( $this->dir, $info );
$extracted = $processor->getExtractedInfo();
$this->assertEquals( 'somevalue', $extracted['globals']['wgBar'] );
$this->assertEquals( 10, $extracted['globals']['wgFoo'] );
+ $this->assertArrayNotHasKey( 'wg@IGNORED', $extracted['globals'] );
}
public static function provideSetToGlobal() {