From f982892c5f462471d94d40d29740178d04a78caa Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 5 Jun 2009 09:05:56 +0000 Subject: B:OP:WesternACH start --- t/lib/test_account.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 t/lib/test_account.pl (limited to 't/lib/test_account.pl') diff --git a/t/lib/test_account.pl b/t/lib/test_account.pl new file mode 100644 index 0000000..6dfddb5 --- /dev/null +++ b/t/lib/test_account.pl @@ -0,0 +1,19 @@ +# Based on the Business-OnlinePayment-AuthorizeNet tests by +# Jason Kohles and/or Ivan Kohler. + +sub test_account_or_skip { + my ($login, $password) = test_account(); + if(!defined $login) { + plan skip_all => "No test account"; + } + return ($login, $password); +} + +sub test_account { + open TEST_ACCOUNT, 't/test_account' or return; + my ($login, $password) = ; + chomp ($login, $password); + return ($login, $password); +} + +1; -- cgit v1.2.1