From: plobbes Date: Fri, 19 Jan 2007 16:06:53 +0000 (+0000) Subject: - Test::More recommendes using use_ok within BEGIN {} X-Git-Tag: BUSINESS_ONLINEPAYMENT_PAYFLOWPRO_0_05~10 X-Git-Url: http://git.freeside.biz/gitweb/?p=Business-OnlinePayment-PayflowPro.git;a=commitdiff_plain;h=191b529fec9f2907f6251603e9efa281d6b2b42a - Test::More recommendes using use_ok within BEGIN {} --- diff --git a/t/00load.t b/t/00load.t index 32f49fc..0eb8c34 100644 --- a/t/00load.t +++ b/t/00load.t @@ -4,8 +4,10 @@ use strict; use warnings; use Test::More tests => 2; -use_ok("Business::OnlinePayment") - or BAIL_OUT("unable to load Business::OnlinePayment\n"); +BEGIN { + use_ok("Business::OnlinePayment") + or BAIL_OUT("unable to load Business::OnlinePayment\n"); -use_ok("Business::OnlinePayment::PayflowPro") - or BAIL_OUT("unable to load Business::OnlinePayment::PayflowPro\n"); + use_ok("Business::OnlinePayment::PayflowPro") + or BAIL_OUT("unable to load Business::OnlinePayment::PayflowPro\n"); +}