From: gggeek Date: Wed, 8 Dec 2021 23:20:02 +0000 (+0000) Subject: Merge branch 'master' of github.com:gggeek/phpxmlrpc X-Git-Tag: plcapi-7.1-0~3^2~15 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=e344025b828aec0efa90d58902c87743b1ebf59f Merge branch 'master' of github.com:gggeek/phpxmlrpc --- e344025b828aec0efa90d58902c87743b1ebf59f diff --cc tests/5ServerTest.php index 4deb587,483bebc..9374390 --- a/tests/5ServerTest.php +++ b/tests/5ServerTest.php @@@ -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