--- Nadim Khemir <[EMAIL PROTECTED]> wrote:

> On Thursday 11 January 2007 15:30, Ovid wrote:
> > Quite often people will write code which tests to see if
> > $ENV{HARNESS_ACTIVE} is true.  For example, this allows them to not
> > email support from their code while testing.  This variable is set
> in
> > Test::Harness.  However, this causes a problem when someone
> > accidentally does this:
> >
> >...
> >
> > Thoughts?
> 
> Just one, Shouldn't the mailer "object" be mocked and the mail
> sending checked?

Absolutely, but how do you know to mock it or really send the email
unless you know that you're being run by tests?

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to