MediaWiki  REL1_22
CollationTest Class Reference
Inheritance diagram for CollationTest:
Collaboration diagram for CollationTest:

List of all members.

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.

Detailed Description

Definition at line 2 of file CollationTest.php.


Member Function Documentation

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.

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

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

prefixDataProvider

Definition at line 23 of file CollationTest.php.

CollationTest::testNotIsPrefix ( lang,
base,
extended 
)

Opposite of testIsPrefix.

notPrefixDataProvider

Definition at line 56 of file CollationTest.php.


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