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

Public Member Functions

 escaped ($string)
 Print high range characters as a hexadecimal. More...
 
 testIsUtf8 ($expected, $string)
 StringUtils::isUtf8 provideStringsForIsUtf8Check. More...
 

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. More...
 

Detailed Description

Definition at line 3 of file StringUtilsTest.php.

Member Function Documentation

StringUtilsTest::escaped (   $string)

Print high range characters as a hexadecimal.

Parameters
string$string
Returns
string

Definition at line 19 of file StringUtilsTest.php.

Referenced by testIsUtf8().

static StringUtilsTest::provideStringsForIsUtf8Check ( )
static

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 40 of file StringUtilsTest.php.

StringUtilsTest::testIsUtf8 (   $expected,
  $string 
)

StringUtils::isUtf8 provideStringsForIsUtf8Check.

Definition at line 9 of file StringUtilsTest.php.

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


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