projects
/
Business-OnlinePayment-PayflowPro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72478e8
)
- Test::More recommendes using use_ok within BEGIN {}
author
plobbes
<plobbes>
Fri, 19 Jan 2007 16:06:53 +0000
(16:06 +0000)
committer
plobbes
<plobbes>
Fri, 19 Jan 2007 16:06:53 +0000
(16:06 +0000)
t/00load.t
patch
|
blob
|
history
diff --git
a/t/00load.t
b/t/00load.t
index
32f49fc
..
0eb8c34
100644
(file)
--- a/
t/00load.t
+++ b/
t/00load.t
@@
-4,8
+4,10
@@
use strict;
use warnings;
use Test::More tests => 2;
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");
+}