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