MediaWiki REL1_31
|
A simple MessageLocalizer
implementation for use in tests.
More...
Public Member Functions | |
__construct ( $languageCode='qqx') | |
msg ( $key) | |
Get a Message object. | |
Private Attributes | |
string null | $languageCode |
A simple MessageLocalizer
implementation for use in tests.
By default, it sets the message language to 'qqx', to make the tests independent of the wiki configuration.
Definition at line 11 of file MockMessageLocalizer.php.
MockMessageLocalizer::__construct | ( | $languageCode = 'qqx' | ) |
string | null | $languageCode | The language code to use for messages by default. You can specify null to use the user language, but this is not recommended as it may make your tests depend on the wiki configuration. |
Definition at line 23 of file MockMessageLocalizer.php.
References $languageCode.
MockMessageLocalizer::msg | ( | $key | ) |
Get a Message object.
Parameters are the same as wfMessage()
.
string | string[] | MessageSpecifier | $key | Message key, or array of keys, or a MessageSpecifier. |
mixed | $args,... |
Implements MessageLocalizer.
Definition at line 36 of file MockMessageLocalizer.php.
References $args.
|
private |
Definition at line 16 of file MockMessageLocalizer.php.
Referenced by __construct().