- function testUtf8Sequence1() {
- $this->assertEquals(
- 'A',
- wfUtf8Sequence( 65 ) );
- }
-
- function testUtf8Sequence2() {
- $this->assertEquals(
- "\xc4\x88",
- wfUtf8Sequence( 0x108 ) );
- }
-
- function testUtf8Sequence3() {
- $this->assertEquals(
- "\xe3\x81\x8b",
- wfUtf8Sequence( 0x304b ) );
- }
-
- function testUtf8Sequence4() {
- $this->assertEquals(
- "\xf0\x90\x91\x90",
- wfUtf8Sequence( 0x10450 ) );
- }
-
- function testMungeToUtf8() {
- $this->assertEquals(
- "\xc4\x88io bonas dans l'\xc3\xa9cole!",
- wfMungeToUtf8( "Ĉio bonas dans l'école!" ) );
- }
-
- function testUtf8ToHTML() {
- $this->assertEquals(
- "Ĉio bonas dans l'école!",
- wfUtf8ToHTML( "\xc4\x88io bonas dans l'\xc3\xa9cole!" ) );
- }
-