From: gggeek <giunta.gaetano@gmail.com>
Date: Sat, 11 Jul 2015 23:05:34 +0000 (+0100)
Subject: Try to stabilize recently introduced test
X-Git-Tag: 4.0.0-alpha^2~14
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=70ee98a9c00c79621db919e79082762ace00fe70;p=plcapi.git

Try to stabilize recently introduced test
---

diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php
index ec9c5618..9d848ab2 100644
--- a/tests/3LocalhostTest.php
+++ b/tests/3LocalhostTest.php
@@ -205,9 +205,9 @@ class LocalhostTest extends PHPUnit_Framework_TestCase
 </methodCall>';
 
         // 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, '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, 'UTF-16', 'UTF-8'));
         $this->assertEquals($sendString, $v->scalarval());
     }