MediaWiki
REL1_24
|
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.
string | $collation | Collation name (aka uca-en) |
string | $string | String to get first letter of |
string | $firstLetter | 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.
string | $lang | Language code for collator |
string | $base | Base string |
string | $extended | String containing base as a prefix. |
prefixDataProvider
Definition at line 29 of file CollationTest.php.
CollationTest::testNotIsPrefix | ( | $ | lang, |
$ | base, | ||
$ | extended | ||
) |