diff options
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; |