MediaWiki REL1_32
LanguageCodeTest Class Reference

LanguageCode Language. More...

Inheritance diagram for LanguageCodeTest:
Collaboration diagram for LanguageCodeTest:

Public Member Functions

 testBcp47 ( $code, $expected)
 test
 
 testConstructor ()
 
 testGetDeprecatedCodeMapping ()
 
 testReplaceDeprecatedCodes ()
 

Static Public Member Functions

static provideLanguageCodes ()
 Array format is ($code, $expected)
 

Detailed Description

LanguageCode Language.

Author
Thiemo Kreuz

Definition at line 9 of file LanguageCodeTest.php.

Member Function Documentation

◆ provideLanguageCodes()

static LanguageCodeTest::provideLanguageCodes ( )
static

Array format is ($code, $expected)

Definition at line 75 of file LanguageCodeTest.php.

◆ testBcp47()

LanguageCodeTest::testBcp47 ( $code,
$expected )

test

See also
LanguageCode::bcp47(). Please note the BCP 47 explicitly state that language codes are case insensitive, there are some exceptions to the rule :) This test is used to verify our formatting against all lower and all upper cases language code.
https://tools.ietf.org/html/bcp47 provideLanguageCodes()

Definition at line 56 of file LanguageCodeTest.php.

References $code.

◆ testConstructor()

LanguageCodeTest::testConstructor ( )

Definition at line 13 of file LanguageCodeTest.php.

◆ testGetDeprecatedCodeMapping()

LanguageCodeTest::testGetDeprecatedCodeMapping ( )

Definition at line 19 of file LanguageCodeTest.php.

◆ testReplaceDeprecatedCodes()

LanguageCodeTest::testReplaceDeprecatedCodes ( )

Definition at line 40 of file LanguageCodeTest.php.


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