From 390edf48f54b0f0645cf7882146a9e117a2099c4 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 12 Jul 2015 00:45:23 +0100 Subject: [PATCH] 2nd try at test stabilization --- tests/3LocalhostTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index 9d848ab..ca2e631 100644 --- a/tests/3LocalhostTest.php +++ b/tests/3LocalhostTest.php @@ -194,7 +194,7 @@ class LocalhostTest extends PHPUnit_Framework_TestCase return; } $sendString = 'κόσμε'; // Greek word 'kosme'. NB: NOT a valid ISO8859 string! - $str = ' + $str = ' examples.stringecho @@ -204,10 +204,9 @@ class LocalhostTest extends PHPUnit_Framework_TestCase '; - // these calls will have no charset declaration in either http headers or xml prolog - $v = $this->send(mb_convert_encoding($str, 'UCS-4', 'UTF-8')); + $v = $this->send(mb_convert_encoding(str_replace('_ENC_', 'UCS-4', $str), 'UCS-4', 'UTF-8')); $this->assertEquals($sendString, $v->scalarval()); - $v = $this->send(mb_convert_encoding($str, 'UTF-16', 'UTF-8')); + $v = $this->send(mb_convert_encoding(str_replace('_ENC_', 'UTF-16', $str), 'UTF-16', 'UTF-8')); $this->assertEquals($sendString, $v->scalarval()); } -- 2.43.0