2008年11月5日星期三

[fw-mvc] setUp/tearDown of (e.g.) Zend_Auth and Zend_Registry instances with Zend_Test

Hi there,

Can I just ask what the best way to handle objects such as Zend_Auth
and Zend_Registry to ensure independence between tests?

At the moment I am using methods such as _unsetInstance and
clearIdentity etc in test tearDowns. I'm sure this could be speeded
somewhat, and I'm wondering if Zend_Test would/is perhaps do it for me?

TIA
Carlton

没有评论: