public function testMulticallDeepCallstack()
 {
     $s = new \SimpleXmlRpc\ServerProxy("http://localhost");
     $multicall = new \SimpleXmlRpc\Multicall($s);
     $multicall->_call("a.b.c", array());
     $multicall->a->b->c();
     $multicall->system->listMethods();
     $this->assertEquals(array(array("methodName" => "a.b.c", "params" => array()), array("methodName" => "a.b.c", "params" => array()), array("methodName" => "system.listMethods", "params" => array())), $multicall->_callstack);
 }
 public function testMulticallMethods()
 {
     $multicall = new \SimpleXmlRpc\Multicall($this->serverproxy);
     $multicall->test_string();
     $multicall->test_none();
     $multicall->test_list();
     $multicall->test_dict();
     $res = $multicall();
     $this->assertEquals(array(array("called test_string"), array(NULL), array(array('called test_list')), array(array('int' => 123, 'list' => array(1, 2, 3)))), $res);
 }