X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F3LocalhostTest.php;h=ca2e631c243e806158c733a845f8d003f8ee1079;hb=390edf48f54b0f0645cf7882146a9e117a2099c4;hp=ec9c56189f4f07bf0ba064930f4c1a13b905a947;hpb=5b7db050a80da5d250316e8fd8db2ed7960b8a16;p=plcapi.git diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index ec9c561..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')); + $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')); + $v = $this->send(mb_convert_encoding(str_replace('_ENC_', 'UTF-16', $str), 'UTF-16', 'UTF-8')); $this->assertEquals($sendString, $v->scalarval()); }