MediaWiki
REL1_22
|
Public Member Functions | |
firstLetterProvider () | |
notPrefixDataProvider () | |
prefixDataProvider () | |
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. | |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Definition at line 2 of file CollationTest.php.
Definition at line 89 of file CollationTest.php.
References array().
Definition at line 66 of file CollationTest.php.
References array().
Definition at line 33 of file CollationTest.php.
References array().
CollationTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiLangTestCase.
Definition at line 3 of file CollationTest.php.
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 84 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 23 of file CollationTest.php.
CollationTest::testNotIsPrefix | ( | $ | lang, |
$ | base, | ||
$ | extended | ||
) |