From 6c135b8b143dd39dce4c9e4fdedb51b7a19ea5b2 Mon Sep 17 00:00:00 2001 From: gggeek <giunta.gaetano@gmail.com> Date: Sun, 12 Apr 2015 00:27:44 +0100 Subject: [PATCH] One more test dealing with latin-1 --- tests/3LocalhostTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index 0dce5682..0e34bc8b 100644 --- a/tests/3LocalhostTest.php +++ b/tests/3LocalhostTest.php @@ -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 -- 2.47.0