X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2F5ServerTest.php;h=4deb587e10389585725c2e3e0fd32e8ab48ae7dc;hb=50ea70e5e917da063be3918971c0b423e48a0489;hp=92d8ba9e15b71dc47691003d6143378616e5864c;hpb=fcc564e07aa856824aa31d365944a033a20efa42;p=plcapi.git diff --git a/tests/5ServerTest.php b/tests/5ServerTest.php index 92d8ba9..4deb587 100644 --- a/tests/5ServerTest.php +++ b/tests/5ServerTest.php @@ -826,6 +826,21 @@ And turned it into nylon'; $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 testWrappedMethod() { // make a 'deep client copy' as the original one might have many properties set