X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=test%2Ftestsuite.php;h=90c5844fc1421f1f84755e93e0c0a886380af1ee;hb=05102eb7d8c0faad30ae3719e2045c1af72b9e9d;hp=d2e56d44dcf2a9fa35de6bd386b1d653e67857dd;hpb=8df4375c9b1630eb2232f042df1057664d2f7245;p=plcapi.git diff --git a/test/testsuite.php b/test/testsuite.php index d2e56d4..90c5844 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -1,5 +1,4 @@ "; + "last but not least weird names: G�nter, El�ne, and an xml comment closing tag: -->"; $f=new xmlrpcmsg('examples.stringecho', array( new xmlrpcval($sendstring, 'string') )); @@ -832,13 +831,13 @@ And turned it into nylon'; } function testUnicodeInMemberName(){ - $v = array('Günter, Elène' => new xmlrpcval(1)); + $v = array('G�nter, El�ne' => new xmlrpcval(1)); $r = new xmlrpcresp(new xmlrpcval($v, 'struct')); $r = $r->serialize(); $m = new xmlrpcmsg('dummy'); $r = $m->parseResponse($r); $v = $r->value(); - $this->assertEquals($v->structmemexists('Günter, Elène'), true); + $this->assertEquals($v->structmemexists('G�nter, El�ne'), true); } function testUnicodeInErrorString() @@ -848,7 +847,7 @@ And turned it into nylon'; - + @@ -859,7 +858,7 @@ And turned it into nylon'; faultString -àüèàüè +���àüè @@ -868,7 +867,7 @@ And turned it into nylon'; $m=new xmlrpcmsg('dummy'); $r=$m->parseResponse($response); $v=$r->faultString(); - $this->assertEquals('àüèàüè', $v); + $this->assertEquals('������', $v); } function testValidNumbers() @@ -1216,19 +1215,19 @@ and there they were.postid7414222userid311127 -dateCreated20011126T09:17:52content'.utf8_encode('àüèàüè').'postid7414222 +dateCreated20011126T09:17:52content'.utf8_encode('������').'postid7414222 '; $r = $s->parseResponse($f, false, 'phpvals'); $v = $r->value(); $v = $v['content']; - $this->assertEquals("àüèàüè", $v); + $this->assertEquals("������", $v); $f = 'userid311127 -dateCreated20011126T09:17:52content'.utf8_encode('àüèàüè').'postid7414222 +dateCreated20011126T09:17:52content'.utf8_encode('������').'postid7414222 '; $r = $s->parseResponse($f, false, 'phpvals'); $v = $r->value(); $v = $v['content']; - $this->assertEquals("àüèàüè", $v); + $this->assertEquals("������", $v); } function testUTF8IntString()