MediaWiki  REL1_23
CollationTest Class Reference

Class CollationTest Collation IcuCollation IdentityCollation UppercaseCollation. More...

Inheritance diagram for CollationTest:
Collaboration diagram for CollationTest:

List of all members.

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 ()

Detailed Description


Member Function Documentation

Definition at line 95 of file CollationTest.php.

References array().

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.

Parameters:
$collationString Collation name (aka uca-en)
$stringString String to get first letter of
$firstLetterString 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.

Parameters:
$langString Language code for collator
$baseString Base string
$extendedString String containing base as a prefix.

prefixDataProvider

Definition at line 29 of file CollationTest.php.

CollationTest::testNotIsPrefix ( lang,
base,
extended 
)

Opposite of testIsPrefix.

notPrefixDataProvider

Definition at line 62 of file CollationTest.php.


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