X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F3LocalhostTest.php;h=a0e9b2a3d8009f9ffae126fdd795d53cb470aeea;hb=4a15ca01cea275528e059ca31474b927f613837a;hp=0dce56820537b81ea7905dfeb1648a885f149a56;hpb=9dd901312ce5ac5a1d4b7da7b90167c9b782f1ed;p=plcapi.git diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index 0dce568..a0e9b2a 100644 --- a/tests/3LocalhostTest.php +++ b/tests/3LocalhostTest.php @@ -107,8 +107,7 @@ class LocalhostTest extends PHPUnit_Framework_TestCase } if (is_array($errrorcode)) { $this->assertContains($r->faultCode(), $errrorcode, 'Error ' . $r->faultCode() . ' connecting to server: ' . $r->faultString()); - } - else { + } else { $this->assertEquals($r->faultCode(), $errrorcode, 'Error ' . $r->faultCode() . ' connecting to server: ' . $r->faultString()); } if (!$r->faultCode()) { @@ -150,6 +149,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"; + $f = 'examples.stringecho'. + $sendstring. + ''; + $v = $this->send($f); + if ($v) { + $this->assertEquals($sendstring, $v->scalarval()); + } + } + public function testAddingDoubles() { // note that rounding errors mean we