Re: [Apache-dispatch-devel] SF.net SVN: apache-dispatch: [56] trunk
Brought to you by:
geoffrey_young,
phred_moyer
|
From: Fred M. <fr...@re...> - 2007-08-06 00:10:26
|
Geoffrey Young wrote: >> -use Apache::Test qw(ok plan :withtestmore ); >> +use Apache::Test qw( :withtestmore ); >> use Apache::TestRequest qw(GET); >> +use Test::More; >> >> plan tests => 5, need_lwp; > > I'm pretty sure you want -withtestmore here - IIRC, :withtestmore gives > you Test::More symbols, in which case plan() is Test::More::plan() and > doesn't recognize the optional parameters, whereas the -withtestmore > action is more dwimmy. > > sorry for the confusion, especially if my memory is cloudy :) No worries, thanks for the spot! I went back and read through the Apache::Test docs when I first did this and they seemed to suggest that :withtestmore is the correct choice for client side tests. After your suggestion and rereading it though, I don't see a case where you would ever want :withtestmore instead of -withtestmore. I guess it was a bit unclear for me, thanks for the spot. |