'ContentHandlers',
'ConfigRegistry',
'RateLimits',
- 'ParserTestFiles',
'RecentChangesFlags',
'MediaHandlers',
'ExtensionFunctions',
$this->extractMessagesDirs( $dir, $info );
$this->extractNamespaces( $info );
$this->extractResourceLoaderModules( $dir, $info );
+ $this->extractParserTestFiles( $dir, $info );
if ( isset( $info['callback'] ) ) {
$this->callbacks[] = $info['callback'];
$this->processed[] = 'callback';
}
}
+ protected function extractParserTestFiles( $dir, array $info ) {
+ if ( isset( $info['ParserTestFiles'] ) ) {
+ foreach ( $info['ParserTestFiles'] as $path ) {
+ $this->globals['wgParserTestFiles'][] = "$dir/$path";
+ }
+ $this->processed[] = 'ParserTestFiles';
+ }
+ }
+
/**
* @param string $name
* @param mixed $value
'ResourceModuleSkinStyles' => 'handleResourceModules',
'Hooks' => 'handleHooks',
'ExtensionFunctions' => 'handleExtensionFunctions',
+ 'ParserTestFiles' => 'removeAbsolutePath',
);
/**