--- Ovid <[EMAIL PROTECTED]> wrote: > Side note: those features I really want control over in > Test::Harness > are the plan() and ok() methods. There's no clean way for me to do > that. Just look at the constructor: > > my $Test = Test::Builder->new; > sub new { > my($class) = shift; > $Test ||= $class->create; > return $Test; > } > > The class name is hard-coded in there.
Note to self: don't post while hung over from the London Perl Workshop. What I just said is rather confusing. What I *need* is a way to easily replace Test::Builder with an appropriate subclass. I think I can replace the builder() method in Test::Builder::Module: sub builder { return Test::Builder->new; } But it would still be nice to have something a bit more subtle than a sledgehammer: sub Test::Builder::Module::builder { ... } Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/