MediaWiki  1.28.0
MockExtensionProcessor Class Reference

Allow overriding the default value of $this->globals so we can test merging. More...

Inheritance diagram for MockExtensionProcessor:
Collaboration diagram for MockExtensionProcessor:

Public Member Functions

 __construct ($globals=[])
 
- Public Member Functions inherited from ExtensionProcessor
 extractInfo ($path, array $info, $version)
 
 getExtraAutoloaderPaths ($dir, array $info)
 Get the path for additional autoloaders, e.g. More...
 
 getExtractedInfo ()
 
 getRequirements (array $info)
 Get the requirements for the provided info. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ExtensionProcessor
 extractConfig (array $info)
 Set configuration settings. More...
 
 extractCredits ($path, array $info)
 
 extractExtensionMessagesFiles ($dir, array $info)
 
 extractHooks (array $info)
 
 extractMessagesDirs ($dir, array $info)
 Set message-related settings, which need to be expanded to use absolute paths. More...
 
 extractNamespaces (array $info)
 Register namespaces with the appropriate global settings. More...
 
 extractParserTestFiles ($dir, array $info)
 
 extractResourceLoaderModules ($dir, array $info)
 
 extractServiceWiringFiles ($dir, array $info)
 
 storeToArray ($path, $name, $value, &$array)
 
- Protected Attributes inherited from ExtensionProcessor
array $attributes = []
 Any thing else in the $info that hasn't already been processed. More...
 
callable[] $callbacks = []
 Things to be called once registration of these extensions are done. More...
 
array $credits = []
 
array array $defines = []
 Things that should be define()'d. More...
 
array $globals
 Stuff that is going to be set to $GLOBALS. More...
 
- Static Protected Attributes inherited from ExtensionProcessor
static array static array $creditsAttributes
 Keys that are part of the extension credits. More...
 
static array $globalSettings
 Keys that should be set to $GLOBALS. More...
 
static array $mergeStrategies
 Mapping of global settings to their specific merge strategies. More...
 
static array $notAttributes
 Things that are not 'attributes', but are not in $globalSettings or $creditsAttributes. More...
 

Detailed Description

Allow overriding the default value of $this->globals so we can test merging.

Definition at line 443 of file ExtensionProcessorTest.php.

Constructor & Destructor Documentation

MockExtensionProcessor::__construct (   $globals = [])

Definition at line 444 of file ExtensionProcessorTest.php.

References ExtensionProcessor\$globals, and globals.


The documentation for this class was generated from the following file: