git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More testsuite fixes
[plcapi.git]
/
test
/
testsuite.php
diff --git
a/test/testsuite.php
b/test/testsuite.php
index
5621c47
..
696138b
100644
(file)
--- a/
test/testsuite.php
+++ b/
test/testsuite.php
@@
-876,9
+876,9
@@
class ParsingBugsTests extends PHPUnit_TestCase
$response = utf8_encode(
'<?xml version="1.0"?>
<!-- $Id -->
$response = utf8_encode(
'<?xml version="1.0"?>
<!-- $Id -->
-<!-- found by G.
g
iunta, covers what happens when lib receives
+<!-- found by G.
G
iunta, covers what happens when lib receives
UTF8 chars in response text and comments -->
UTF8 chars in response text and comments -->
-<!--
���
àüè -->
+<!--
' . chr(224) . chr(252) . chr(232) . '
àüè -->
<methodResponse>
<fault>
<value>
<methodResponse>
<fault>
<value>
@@
-889,7
+889,7
@@
class ParsingBugsTests extends PHPUnit_TestCase
</member>
<member>
<name>faultString</name>
</member>
<member>
<name>faultString</name>
-<value><string>
���
àüè</string></value>
+<value><string>
' . chr(224) . chr(252) . chr(232) . '
àüè</string></value>
</member>
</struct>
</value>
</member>
</struct>
</value>
@@
-898,7
+898,7
@@
class ParsingBugsTests extends PHPUnit_TestCase
$m=new xmlrpcmsg('dummy');
$r=$m->parseResponse($response);
$v=$r->faultString();
$m=new xmlrpcmsg('dummy');
$r=$m->parseResponse($response);
$v=$r->faultString();
- $this->assertEquals(
'������'
, $v);
+ $this->assertEquals(
chr(224) . chr(252) . chr(232) . chr(224) . chr(252) . chr(232)
, $v);
}
function testValidNumbers()
}
function testValidNumbers()