One more test dealing with latin-1
authorgggeek <giunta.gaetano@gmail.com>
Sat, 11 Apr 2015 23:27:44 +0000 (00:27 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sat, 11 Apr 2015 23:27:44 +0000 (00:27 +0100)
tests/3LocalhostTest.php

index 0dce568..0e34bc8 100644 (file)
@@ -150,6 +150,19 @@ class LocalhostTest extends PHPUnit_Framework_TestCase
         }
     }
 
+    public function testLatin1String()
+    {
+        $sendstring =
+            "last but not least weird names: G" . chr(252) . "nter, El" . chr(232) . "ne, and an xml comment closing tag: -->";
+        $f = '<?xml version="1.0" encoding="iso-8859-1"?><methodCall><methodName>examples.stringecho</methodName><params><param><value>'.
+            $sendstring.
+            '</value></param></params></methodCall>';
+        $v = $this->send($f);
+        if ($v) {
+            $this->assertEquals($sendstring, $v->scalarval());
+        }
+    }
+
     public function testAddingDoubles()
     {
         // note that rounding errors mean we