【发布时间】:2013-02-28 22:39:38
【问题描述】:
如果我打电话
$guest_identity = Zend_Controller_Request_Http::getCookie('guest_identity', $key);
或
$COOKIE['guest_identity'];
PHPUnit 3.4.15 退出函数没有错误。如何解决?
【问题讨论】:
标签: php zend-framework cookies phpunit
如果我打电话
$guest_identity = Zend_Controller_Request_Http::getCookie('guest_identity', $key);
或
$COOKIE['guest_identity'];
PHPUnit 3.4.15 退出函数没有错误。如何解决?
【问题讨论】:
标签: php zend-framework cookies phpunit
如果我理解正确,上面的代码应该会引发错误或异常,但它不会。
如果是这种情况,请根据您预期发生的错误类型使用其中一种。如果您传递函数 null 则错误处理程序将重置为默认值。
register_shutdown_function
set_error_handler
set_exception_handler
【讨论】: