From be406d63c36f48190a44117158d92cdbc7f72565 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 24 May 2015 00:49:08 +0100 Subject: [PATCH] Add test for the method signature of wrapped functions --- tests/3LocalhostTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/3LocalhostTest.php b/tests/3LocalhostTest.php index 3675d9d..ec3ba17 100644 --- a/tests/3LocalhostTest.php +++ b/tests/3LocalhostTest.php @@ -569,6 +569,14 @@ And turned it into nylon'; new xmlrpcval(0, 'int'), )); $v = $this->send($f, $GLOBALS['xmlrpcerr']['server_error']); + + // check if the generated function dispatch map is fine, by checking if the server registered it + $f = new xmlrpcmsg('system.methodSignature', array( + new xmlrpcval('tests.getStateName.2'), + )); + $v = $this->send($f); + $encoder = new \PhpXmlRpc\Encoder(); + $this->assertEquals(array(array('string', 'int')), $encoder->decode($v)); } public function testServerWrappedFunctionAsSource() -- 2.43.0