git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68237fa
)
Add test for the method signature of wrapped functions
author
gggeek
<giunta.gaetano@gmail.com>
Sat, 23 May 2015 23:49:08 +0000
(
00:49
+0100)
committer
gggeek
<giunta.gaetano@gmail.com>
Sat, 23 May 2015 23:49:08 +0000
(
00:49
+0100)
tests/3LocalhostTest.php
patch
|
blob
|
history
diff --git
a/tests/3LocalhostTest.php
b/tests/3LocalhostTest.php
index
3675d9d
..
ec3ba17
100644
(file)
--- 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']);
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()
}
public function testServerWrappedFunctionAsSource()