MediaWiki
REL1_23
|
Class CollationTest Collation IcuCollation IdentityCollation UppercaseCollation. More...
Public Member Functions | |
firstLetterProvider () | |
testGetFirstLetter ($collation, $string, $firstLetter) | |
Test correct first letter is fetched. | |
testIsPrefix ($lang, $base, $extended) | |
Test to make sure, that if you have "X" and "XY", the binary sortkey also has "X" being a prefix of "XY". | |
testNotIsPrefix ($lang, $base, $extended) | |
Opposite of testIsPrefix. | |
Static Public Member Functions | |
static | notPrefixDataProvider () |
static | prefixDataProvider () |
Protected Member Functions | |
setUp () |
Class CollationTest Collation IcuCollation IdentityCollation UppercaseCollation.
Definition at line 10 of file CollationTest.php.
Definition at line 95 of file CollationTest.php.
References array().
static CollationTest::notPrefixDataProvider | ( | ) | [static] |
Definition at line 72 of file CollationTest.php.
References array().
static CollationTest::prefixDataProvider | ( | ) | [static] |
Definition at line 39 of file CollationTest.php.
References array().
CollationTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiLangTestCase.
Definition at line 11 of file CollationTest.php.
References MediaWikiTestCase\checkPHPExtension().
CollationTest::testGetFirstLetter | ( | $ | collation, |
$ | string, | ||
$ | firstLetter | ||
) |
Test correct first letter is fetched.
$collation | String Collation name (aka uca-en) |
$string | String String to get first letter of |
$firstLetter | String Expected first letter. |
firstLetterProvider
Definition at line 90 of file CollationTest.php.
References Collation\factory().
CollationTest::testIsPrefix | ( | $ | lang, |
$ | base, | ||
$ | extended | ||
) |
Test to make sure, that if you have "X" and "XY", the binary sortkey also has "X" being a prefix of "XY".
Our collation code makes this assumption.
$lang | String Language code for collator |
$base | String Base string |
$extended | String String containing base as a prefix. |
prefixDataProvider
Definition at line 29 of file CollationTest.php.
CollationTest::testNotIsPrefix | ( | $ | lang, |
$ | base, | ||
$ | extended | ||
) |