Merge branch 'master' of github.com:gggeek/phpxmlrpc
authorgggeek <giunta.gaetano@gmail.com>
Wed, 8 Dec 2021 23:20:02 +0000 (23:20 +0000)
committergggeek <giunta.gaetano@gmail.com>
Wed, 8 Dec 2021 23:20:02 +0000 (23:20 +0000)
1  2 
src/Wrapper.php
tests/5ServerTest.php

diff --cc src/Wrapper.php
Simple merge
@@@ -824,23 -824,17 +824,32 @@@ And turned it into nylon'
          ));
          $v = $this->send($m);
          $this->assertEquals('Michigan', $v->scalarval());
 +    }
 +
 +    public function testWrapInexistentMethod()
 +    {
 +        // make a 'deep client copy' as the original one might have many properties set
 +        $func = wrap_xmlrpc_method($this->client, 'examples.getStateName.notexisting', array('simple_client_copy' => 0));
 +        $this->assertEquals(false, $func);
 +    }
 +
 +    public function testWrapInexistentUrl()
 +    {
 +        $this->client->path = '/notexisting';
 +        // make a 'deep client copy' as the original one might have many properties set
 +        $func = wrap_xmlrpc_method($this->client, 'examples.getStateName', array('simple_client_copy' => 0));
 +        $this->assertEquals(false, $func);
      }
  
+     public function testServerWrappedClassWithNamespace()
+     {
+         $m = new xmlrpcmsg('namespacetest.findState', array(
+             new xmlrpcval(23, 'int'),
+         ));
+         $v = $this->send($m);
+         $this->assertEquals('Michigan', $v->scalarval());
+     }
      public function testWrappedMethod()
      {
          // make a 'deep client copy' as the original one might have many properties set