From 76c07388ef42b8dc3c1b55e4e3c95a8743695434 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 20 Jul 2007 00:15:12 +0000 Subject: [PATCH] this has been replaced by t/inc/Sanitizer.t --- tests/SanitizerTest.php | 49 ----------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 tests/SanitizerTest.php diff --git a/tests/SanitizerTest.php b/tests/SanitizerTest.php deleted file mode 100644 index 3c66681d46..0000000000 --- a/tests/SanitizerTest.php +++ /dev/null @@ -1,49 +0,0 @@ -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! */ -} - - -- 2.20.1