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

List of all members.

Public Member Functions

 escaped ($string)
 Print high range characters as an hexadecimal.
 testIsUtf8WithMbstring ($expected, $string)
 This tests StringUtils::isUtf8 whenever we have the mbstring extension loaded.
 testIsUtf8WithPhpFallbackImplementation ($expected, $string)
 This tests StringUtils::isUtf8 making sure we use the pure PHP implementation used as a fallback when mb_check_encoding() is not available.

Static Public Member Functions

static provideStringsForIsUtf8Check ()
 See also "UTF-8 decoder capability and stress test" by Markus Kuhn: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt.

Detailed Description

Definition at line 3 of file StringUtilsTest.php.


Member Function Documentation

StringUtilsTest::escaped ( string)

Print high range characters as an hexadecimal.

Definition at line 40 of file StringUtilsTest.php.

Referenced by testIsUtf8WithMbstring(), and testIsUtf8WithPhpFallbackImplementation().

See also "UTF-8 decoder capability and stress test" by Markus Kuhn: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt.

Definition at line 61 of file StringUtilsTest.php.

References array().

StringUtilsTest::testIsUtf8WithMbstring ( expected,
string 
)

This tests StringUtils::isUtf8 whenever we have the mbstring extension loaded.

StringUtils::isUtf8 provideStringsForIsUtf8Check

Definition at line 12 of file StringUtilsTest.php.

References escaped(), and StringUtils\isUtf8().

This tests StringUtils::isUtf8 making sure we use the pure PHP implementation used as a fallback when mb_check_encoding() is not available.

StringUtils::isUtf8 provideStringsForIsUtf8Check

Definition at line 30 of file StringUtilsTest.php.

References escaped(), and StringUtils\isUtf8().


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