Hans Dieter Pearcey on 28 Jul 2004 13:35:43 -0000


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

Re: Web page testing


On Wed, Jul 28, 2004 at 09:19:21AM -0400, Phil Lawrence wrote:
> Here's why not:  I can't use Test::More from within those modules, 
> because I already used it in the ./t/test_driver.pl script!  :-(

Using a module in more than one module of a program is perfectly
permissable.  Wouldn't it suck to try to cram all uses of
e.g. POSIX::strftime into one module, because you couldn't "use POSIX"
anywhere else once you'd done that?

> The last thing I tried was to subclass Test::More thusly:
>   package T::Test;
>   use warnings;
>   use strict;
>   use Test::More qw(no_plan);
>   sub new { bless {} => shift() }
>   1;

This is not a subclass.  It's just a package that uses Test::More.
There's no @ISA.  perldoc perltoot, look for ISA.

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