httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [PATCH] new need functions
Date Mon, 02 Aug 2004 18:39:27 GMT
Geoffrey Young wrote:

+1, with the small addition to the doc, thanks Geoff!

> -Functions that can be used as a last argument to the extended plan():
> +Functions that can be used as a last argument to the extended plan().
> +Note that for each C<need_*> function there is a C<have_*> equivalent
> +that performs the exact same function except that it is designed to
> +be used outside of C<plan()>.  

C<need_*> functions have the side effect of generating skip messages, if 
the test is skipped.  C<have_*> functions don't have this side effect.

> In other words, use C<need_apache()>
> +with C<plan()> to decide whether a test will run, but C<have_apache()>
> +within test logic to adjust expectations based on older or newer
> +server versions.



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message