diff --git a/test/.env.example b/test/.env.example new file mode 100644 index 0000000..8ad37ce --- /dev/null +++ b/test/.env.example @@ -0,0 +1,7 @@ +# for AWS gift card testing +AWS_GIFT_CARD_ENDPOINT= +AWS_GIFT_CARD_KEY= +AWS_GIFT_CARD_SECRET= +AWS_GIFT_CARD_PARTNER_ID= +AWS_GIFT_CARD_CURRENCY= +AWS_DEBUG= diff --git a/test/aws_gift_card_tests.php b/test/aws_gift_card_tests.php index 936b973..260c3d0 100644 --- a/test/aws_gift_card_tests.php +++ b/test/aws_gift_card_tests.php @@ -76,21 +76,6 @@ print "

Amazon Gift Card Incentives


"; // optional // debug: AWS_DEBUG (if not set: off) -// as in .env -// AWS_GIFT_CARD_ENDPOINT.TEST -// AWS_GIFT_CARD_ENDPOINT.LIVE - -define('LOCATION', 'test'); -foreach ( - [ - 'AWS_GIFT_CARD_KEY', 'AWS_GIFT_CARD_SECRET', 'AWS_GIFT_CARD_PARTNER_ID', - 'AWS_GIFT_CARD_ENDPOINT', 'AWS_GIFT_CARD_CURRENCY', 'AWS_DEBUG' - ] as $key -) { - // - $_ENV[$key] = $_ENV[$key . '.' . strtoupper((LOCATION))] ?? $_ENV[$key] ?? ''; -} - // open debug file output $fp = fopen('log/debug.' . date('YmdHis') . '.log', 'w'); if (!is_resource($fp)) {