脚本宝典收集整理的这篇文章主要介绍了php – Zend_Controller_Response_Exception:无法发送标头;,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
PRotected function _getResp() { if (is_null($this->_response)) $this->_response = new Zend_Controller_Response_Http(); return $this->_response; } ....... $this->_getResp()->setHeader('Content-tyPE','text/htML; charset=utf-8',true);
结果 – 测试失败了
public function setResp(Zend_Controller_Response_Http $resp) { $this->_response = $resp; }
创建一个新的Zend_Controller_Response_HttpTestCase并将其传递给您正在测试的对象上的setResp().这也将允许您验证正确的@L_512_13@是否与输出一起“发送”.
以上是脚本宝典为你收集整理的php – Zend_Controller_Response_Exception:无法发送标头;全部内容,希望文章能够帮你解决php – Zend_Controller_Response_Exception:无法发送标头;所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。