oops demo changes
authorgggeek <giunta.gaetano@gmail.com>
Sun, 8 Jan 2023 14:02:42 +0000 (14:02 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sun, 8 Jan 2023 14:02:42 +0000 (14:02 +0000)
demo/client/proxy.php
tests/7DemofilesTest.php

index 20bd8a0..f776c02 100644 (file)
@@ -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;
 
index b387ba6..815bcd1 100644 (file)
@@ -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');