+ $m = new xmlrpcmsg('system.listMethods');
+ $v = $this->send($m);
+ }
+
+ public function testNullParams()
+ {
+ $m = new xmlrpcmsg('tests.getStateName.12', array(
+ new xmlrpcval('whatever', 'null'),
+ new xmlrpcval(23, 'int'),
+ ));
+ $v = $this->send($m);
+ if ($v) {
+ $this->assertEquals('Michigan', $v->scalarval());
+ }
+ $m = new xmlrpcmsg('tests.getStateName.12', array(
+ new xmlrpcval(23, 'int'),
+ new xmlrpcval('whatever', 'null'),
+ ));
+ $v = $this->send($m);
+ if ($v) {
+ $this->assertEquals('Michigan', $v->scalarval());
+ }
+ $m = new xmlrpcmsg('tests.getStateName.12', array(
+ new xmlrpcval(23, 'int')
+ ));
+ $v = $this->send($m, array($GLOBALS['xmlrpcerr']['incorrect_params']));