More testsuite fixes
authorgggeek <giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 14:39:54 +0000 (15:39 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sat, 1 Jul 2017 14:39:54 +0000 (15:39 +0100)
.travis.yml
lib/xmlrpc.inc
test/testsuite.php

index 28a16f9..f51f06e 100644 (file)
@@ -1,3 +1,6 @@
+# we need to use the trusty images if we want to test on hhvm
+dist: trusty
+
 language: php
 
 php:
index dbd36a9..7123184 100644 (file)
        $GLOBALS['xmlrpc_internalencoding']='ISO-8859-1';\r
 \r
        $GLOBALS['xmlrpcName']='XML-RPC for PHP';\r
-       $GLOBALS['xmlrpcVersion']='3.0.1';\r
+       $GLOBALS['xmlrpcVersion']='3.1.0';\r
 \r
        // let user errors start at 800\r
        $GLOBALS['xmlrpcerruser']=800;\r
index 5621c47..696138b 100644 (file)
@@ -876,9 +876,9 @@ class ParsingBugsTests extends PHPUnit_TestCase
         $response = utf8_encode(
 '<?xml version="1.0"?>
 <!-- $Id -->
-<!-- found by G. giunta, covers what happens when lib receives
+<!-- found by G. Giunta, covers what happens when lib receives
   UTF8 chars in response text and comments -->
-<!-- ���&#224;&#252;&#232; -->
+<!-- ' . chr(224) . chr(252) . chr(232) . '&#224;&#252;&#232; -->
 <methodResponse>
 <fault>
 <value>
@@ -889,7 +889,7 @@ class ParsingBugsTests extends PHPUnit_TestCase
 </member>
 <member>
 <name>faultString</name>
-<value><string>���&#224;&#252;&#232;</string></value>
+<value><string>' . chr(224) . chr(252) . chr(232) . '&#224;&#252;&#232;</string></value>
 </member>
 </struct>
 </value>
@@ -898,7 +898,7 @@ class ParsingBugsTests extends PHPUnit_TestCase
         $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()