Hans Dieter Pearcey on 28 Jul 2004 13:52:45 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Web page testing


On Wed, Jul 28, 2004 at 09:43:17AM -0400, Phil Lawrence wrote:
> Sorry, should have shown the error that one gets when trying to "use" 
> Test::More in more than one module at the same time:
>   #     Error:  You tried to plan twice!  Second plan at
>         t/T/Mechanize.pm line 8

Subclassing might be okay.

Otherwise you could try
require Test::More;

Test::More::ok(...);
Test::More::...

Which is ugly but may work.

hdp.
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**