From ab263a0bf150a3a703683d31d6fe6fe63bcbe4e6 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 23 Oct 2008 15:22:31 -0400 Subject: [PATCH] Rewrite spurious encoding test, as utf8 is sometimes useful. Signed-off-by: Edward Z. Yang --- tests/HTMLPurifier/EncoderTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/HTMLPurifier/EncoderTest.php b/tests/HTMLPurifier/EncoderTest.php index 03263e7c..627d3fe0 100644 --- a/tests/HTMLPurifier/EncoderTest.php +++ b/tests/HTMLPurifier/EncoderTest.php @@ -39,10 +39,8 @@ class HTMLPurifier_EncoderTest extends HTMLPurifier_Harness } function test_convertToUTF8_spuriousEncoding() { - // We don't support this as UTF-8, because UTF-8 is the default and - // shouldn't be set if not necessary. - $this->config->set('Core', 'Encoding', 'utf8'); - $this->expectError('Invalid encoding utf8'); + $this->config->set('Core', 'Encoding', 'utf99'); + $this->expectError('Invalid encoding utf99'); $this->assertIdentical( HTMLPurifier_Encoder::convertToUTF8("\xF6", $this->config, $this->context), ''