MediaWiki REL1_28
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.
 
 getExtractedInfo ()
 
 getRequirements (array $info)
 Get the requirements for the provided info.
 

Additional Inherited Members

- Protected Member Functions inherited from ExtensionProcessor
 extractConfig (array $info)
 Set configuration settings.
 
 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.
 
 extractNamespaces (array $info)
 Register namespaces with the appropriate global settings.
 
 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.
 
callable[] $callbacks = []
 Things to be called once registration of these extensions are done keyed by the name of the extension that it belongs to.
 
array $credits = []
 
array $defines = []
 Things that should be define()'d.
 
array $globals
 Stuff that is going to be set to $GLOBALS.
 
- Static Protected Attributes inherited from ExtensionProcessor
static array $creditsAttributes
 Keys that are part of the extension credits.
 
static array $globalSettings
 Keys that should be set to $GLOBALS.
 
static array $mergeStrategies
 Mapping of global settings to their specific merge strategies.
 
static array $notAttributes
 Things that are not 'attributes', but are not in $globalSettings or $creditsAttributes.
 

Detailed Description

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

Definition at line 495 of file ExtensionProcessorTest.php.

Constructor & Destructor Documentation

◆ __construct()

MockExtensionProcessor::__construct (   $globals = [])

Definition at line 496 of file ExtensionProcessorTest.php.

References ExtensionProcessor\$globals, and globals.


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