From: gggeek Date: Sun, 8 Jan 2023 14:02:42 +0000 (+0000) Subject: oops demo changes X-Git-Tag: 4.9.5~29 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9d7d64df377efb62c5e9a3d2125d543bb262a89c;p=plcapi.git oops demo changes --- diff --git a/demo/client/proxy.php b/demo/client/proxy.php index 20bd8a0c..f776c023 100644 --- a/demo/client/proxy.php +++ b/demo/client/proxy.php @@ -44,16 +44,16 @@ class XmlRpcProxy */ public function __call($name, $arguments) { - $arguments = array(); + $args = array(); foreach ($arguments as $parameter) { - $arguments[] = $this->encoder->encode($parameter, $this->encodingOptions); + $args[] = $this->encoder->encode($parameter, $this->encodingOptions); } // just in case this was set to something else $originalReturnType = $this->client->return_type; $this->client->return_type = 'phpvals'; - $resp = $this->client->send(new PhpXmlRpc\Request($this->prefix.$name, $arguments)); + $resp = $this->client->send(new PhpXmlRpc\Request($this->prefix.$name, $args)); $this->client->return_type = $originalReturnType; diff --git a/tests/7DemofilesTest.php b/tests/7DemofilesTest.php index b387ba6f..815bcd18 100644 --- a/tests/7DemofilesTest.php +++ b/tests/7DemofilesTest.php @@ -32,19 +32,6 @@ class DemoFilesTest extends PhpXmlRpc_WebTestCase $page = $this->request('?demo=client/introspect.php'); } - public function testMail() - { - $page = $this->request('?demo=client/mail.php'); - $page = $this->request('?demo=client/mail.php', 'POST', array( - "mailto" => '', - "mailsub" => '', - "mailmsg" => '', - "mailfrom" => '', - "mailcc" => '', - "mailbcc" => '', - )); - } - public function testParallel() { $page = $this->request('?demo=client/parallel.php');