From: gggeek Date: Sat, 11 Apr 2015 23:27:44 +0000 (+0100) Subject: One more test dealing with latin-1 X-Git-Tag: 4.0.0-alpha^2~100 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6c135b8b143dd39dce4c9e4fdedb51b7a19ea5b2;p=plcapi.git One more test dealing with latin-1 --- 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 = 'examples.stringecho'. + $sendstring. + ''; + $v = $this->send($f); + if ($v) { + $this->assertEquals($sendstring, $v->scalarval()); + } + } + public function testAddingDoubles() { // note that rounding errors mean we