2008年11月6日星期四

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

On 5 Nov 2008, at 13:18, Matthew Weier O'Phinney wrote:

> -- Carlton Gibson <carlton.gibson@noumenal.co.uk> wrote
> (on Wednesday, 05 November 2008, 08:58 AM +0000):
>> 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?
>
> It doesn't currently, but please feel free to request this in the
> issue
> tracker; I suspect others would like to see it as well.


Issue created and ready for MVCers' votes:

http://framework.zend.com/issues/browse/ZF-4815

没有评论: