Skip to content

Commit

Permalink
Add test for the method signature of wrapped functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed May 23, 2015
1 parent 68237fa commit be406d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/3LocalhostTest.php
Expand Up @@ -569,6 +569,14 @@ public function testServerWrappedFunction()
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()
Expand Down

0 comments on commit be406d6

Please sign in to comment.