diff options
author | mark <mark> | 2009-06-05 09:05:56 +0000 |
---|---|---|
committer | mark <mark> | 2009-06-05 09:05:56 +0000 |
commit | f982892c5f462471d94d40d29740178d04a78caa (patch) | |
tree | 76c9869d761bbf0a023b0151b05a725121a4b1fd /t/lib/test_account.pl |
B:OP:WesternACH startstart
Diffstat (limited to 't/lib/test_account.pl')
-rw-r--r-- | t/lib/test_account.pl | 19 |
1 files changed, 19 insertions, 0 deletions
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) = <TEST_ACCOUNT>; + chomp ($login, $password); + return ($login, $password); +} + +1; |