From 6c135b8b143dd39dce4c9e4fdedb51b7a19ea5b2 Mon Sep 17 00:00:00 2001 From: gggeek 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 0dce568..0e34bc8 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 = 'examples.stringecho'. + $sendstring. + ''; + $v = $this->send($f); + if ($v) { + $this->assertEquals($sendstring, $v->scalarval()); + } + } + public function testAddingDoubles() { // note that rounding errors mean we -- 2.43.0