MediaWiki REL1_31
MockMessageLocalizer.php
Go to the documentation of this file.
1<?php
2
12
17
23 public function __construct( $languageCode = 'qqx' ) {
24 $this->languageCode = $languageCode;
25 }
26
36 public function msg( $key ) {
37 $args = func_get_args();
38
40 $message = call_user_func_array( 'wfMessage', $args );
41
42 if ( $this->languageCode !== null ) {
43 $message->inLanguage( $this->languageCode );
44 }
45
46 return $message;
47 }
48
49}
if( $line===false) $args
Definition cdb.php:64
A simple MessageLocalizer implementation for use in tests.
__construct( $languageCode='qqx')
msg( $key)
Get a Message object.
Interface for localizing messages in MediaWiki.