From 7cb5e00a5fed93089d5608844b07876e253c7c21 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 9 Jun 2022 09:26:42 +0900 Subject: [PATCH] Add base phpUnit file --- test/phpUnit/AmazonIncentivesTest.php | 86 +++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 test/phpUnit/AmazonIncentivesTest.php diff --git a/test/phpUnit/AmazonIncentivesTest.php b/test/phpUnit/AmazonIncentivesTest.php new file mode 100644 index 0000000..381decd --- /dev/null +++ b/test/phpUnit/AmazonIncentivesTest.php @@ -0,0 +1,86 @@ + [ + 'env_folder' => null, + 'env_file' => null, + ] + ]; + } + + /** + * Undocumented function + * + * @dataProvider amazonIncentivesProvider + * @testdox AmazonIncentives tests [$_dataName] + * + * @return void + */ + public function testAmazonIncentives(?string $env_folder, ?string $env_file): void + { + // - init plain + // * via ::make() + // - buyGiftCard: buy gift card + // - getCreationRequestId + // - getId + // - getClaimCode + // - getExpirationDate + // - getStatus + // - cancelGiftCard: cancel gift card + // - getAvailableFunds: get available fund + // - getAmount + // - getCurrency + // - getTimestamp + + // try/catch + // -decodeExceptionMessage (static) + $this->markTestSkipped('Not yet implemented: AmazonIncentives'); + } + + public function checkMeProvider(): array + { + return [ + 'default' => [ + 'env_folder' => null, + 'env_file' => null, + 'expected' => [], + ] + ]; + } + + /** + * Undocumented function + * + * @cover ::checkMe + * @dataProvider checkMeProvider + * @testdox AmazonIncentives tests [$_dataName] + * + * @return void + */ + public function testCheckMe(?string $env_folder, ?string $env_file, array $expected): void + { + $aws = new AmazonIncentives(); + $aws_check_me = $aws->checkMe(); + // compare that data matches + print "CM: " . print_r($aws_check_me, true) . "\n"; + } +} + +// __END__