2008年11月25日星期二

Re: [fw-mvc] Running the same tests as a basis for every action

On 25 Nov 2008, at 12:45, Matthew Weier O'Phinney wrote:

> -- Carlton Gibson <carlton.gibson@noumenal.co.uk> wrote
> (on Tuesday, 25 November 2008, 09:30 AM +0000):
>> I have a set of tests which check aspects of the output associated
>> with
>> layout scripts. What I'd like to do is run them for every action --
>> this
>> is overkill perhaps but since the test suite is automated it's no
>> problem.
>>
>> My question is whether it is possible to specify with Zend_Test that
>> some tests should be run for each action in addition to those
>> explicitly
>> defined in a controller test case?
>
> Call those tests from your tearDown() method.

Brilliant, thanks.

没有评论: