public function testChangingExceptionResetsGeneratorObject()
 {
     $generator = Zend_XmlRpc_Value::getGenerator();
     Zend_XmlRpc_Value::setEncoding('UTF-8');
     $this->assertNotSame($generator, Zend_XmlRpc_Value::getGenerator());
     $this->assertEquals($generator, Zend_XmlRpc_Value::getGenerator());
     $generator = Zend_XmlRpc_Value::getGenerator();
     Zend_XmlRpc_Value::setEncoding('ISO-8859-1');
     $this->assertNotSame($generator, Zend_XmlRpc_Value::getGenerator());
     $this->assertNotEquals($generator, Zend_XmlRpc_Value::getGenerator());
 }
Beispiel #2
0
 /**
  * Set encoding to use in response
  *
  * @param string $encoding
  * @return Zend_XmlRpc_Response
  */
 public function setEncoding($encoding)
 {
     $this->_encoding = $encoding;
     Zend_XmlRpc_Value::setEncoding($encoding);
     return $this;
 }