public function getServerResponseFor($nativeVars) { $response = new XmlRpc\Response(); $response->setReturnValue($nativeVars); $xml = $response->saveXml(); $response = $this->makeHttpResponseFrom($xml); return $response; }
/** * __toString() test */ public function test__toString() { $this->_response->setReturnValue('return value'); $xml = $this->_response->__toString(); $this->_testXmlResponse($xml); }