public function testMulticallCallstack()
 {
     $s = new \SimpleXmlRpc\ServerProxy("http://localhost");
     $multicall = new \SimpleXmlRpc\Multicall($s);
     $multicall->_call("test_string", array());
     $multicall->test_string();
     $this->assertEquals(array(array("methodName" => "test_string", "params" => array()), array("methodName" => "test_string", "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);
 }