From 191b529fec9f2907f6251603e9efa281d6b2b42a Mon Sep 17 00:00:00 2001 From: plobbes Date: Fri, 19 Jan 2007 16:06:53 +0000 Subject: [PATCH] - Test::More recommendes using use_ok within BEGIN {} --- t/00load.t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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"); +} -- 2.11.0