コード例 #1
0
ファイル: ClientTest.php プロジェクト: alab1001101/zf2
 public function getServerResponseFor($nativeVars)
 {
     $response = new XmlRpc\Response();
     $response->setReturnValue($nativeVars);
     $xml = $response->saveXml();
     $response = $this->makeHttpResponseFrom($xml);
     return $response;
 }
コード例 #2
0
ファイル: ResponseTest.php プロジェクト: pnaq57/zf2demo
 /**
  * saveXml() test
  */
 public function testSaveXML()
 {
     $this->_response->setReturnValue('return value');
     $xml = $this->_response->saveXml();
     $this->_testXmlResponse($xml);
 }