From 396b28f3d881f5debd888ba9bb9b47c2d478a76f Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 15 Dec 2008 18:02:47 +0100 Subject: update to Mediawiki 1.13.3; some cleanups --- tests/SanitizerTest.php | 65 ------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 tests/SanitizerTest.php (limited to 'tests/SanitizerTest.php') diff --git a/tests/SanitizerTest.php b/tests/SanitizerTest.php deleted file mode 100644 index 5babf0ae..00000000 --- a/tests/SanitizerTest.php +++ /dev/null @@ -1,65 +0,0 @@ -PHPUnit_TestCase( $name ); - } - - function setUp() { - } - - function tearDown() { - } - - function testDecodeNamed() { - $this->assertEquals( - "\xc3\xa9cole", - Sanitizer::decodeCharReferences( 'école' ) ); - } - - function testDecodeNumbered() { - $this->assertEquals( - "\xc4\x88io bonas dans l'\xc3\xa9cole!", - Sanitizer::decodeCharReferences( "Ĉio bonas dans l'école!" ) ); - } - - function testDecodeMixed() { - $this->assertEquals( - "\xc4\x88io bonas dans l'\xc3\xa9cole!", - Sanitizer::decodeCharReferences( "Ĉio bonas dans l'école!" ) ); - } - - function testDecodeMixedComplex() { - $this->assertEquals( - "\xc4\x88io bonas dans l'\xc3\xa9cole! (mais pas Ĉio dans l'école)", - Sanitizer::decodeCharReferences( "Ĉio bonas dans l'école! (mais pas Ĉio dans l'école)" ) ); - } - - function testDecodeInvalidAmp() { - $this->assertEquals( - "a & b", - Sanitizer::decodeCharReferences( "a & b" ) ); - } - - function testDecodeInvalidNamed() { - $this->assertEquals( - "&foo;", - Sanitizer::decodeCharReferences( "&foo;" ) ); - } - - function testDecodeInvalidNumbered() { - $this->assertEquals( - UTF8_REPLACEMENT, - Sanitizer::decodeCharReferences( "�" ) ); - } - - /* TODO: many more! */ -} - -?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf