From 9d7d64df377efb62c5e9a3d2125d543bb262a89c Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 8 Jan 2023 14:02:42 +0000 Subject: [PATCH] oops demo changes --- demo/client/proxy.php | 6 +++--- tests/7DemofilesTest.php | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) 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'); -- 2.47.0