From e05884340b02fef4d4f94d412c2965c6ef73b882 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 13:35:26 +0200 Subject: [PATCH] Implemented Payment Methods --- src/entity/payment/AbstractPayment.php | 12 ++++++++++++ src/entity/payment/PaymentInterface.php | 8 +++++--- src/entity/payment/method1/Method1.php | 18 ++++++++++++++++++ src/entity/payment/method1/Method1Test.php | 15 +++++++++++++++ src/entity/payment/method2/Method2.php | 18 ++++++++++++++++++ src/entity/payment/method2/Method2Test.php | 17 +++++++++++++++++ 6 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 src/entity/payment/AbstractPayment.php create mode 100644 src/entity/payment/method1/Method1.php create mode 100644 src/entity/payment/method1/Method1Test.php create mode 100644 src/entity/payment/method2/Method2.php create mode 100644 src/entity/payment/method2/Method2Test.php diff --git a/src/entity/payment/AbstractPayment.php b/src/entity/payment/AbstractPayment.php new file mode 100644 index 0000000..47ed146 --- /dev/null +++ b/src/entity/payment/AbstractPayment.php @@ -0,0 +1,12 @@ +assertEquals(Method1::getName(), 'method1'); + } +} + diff --git a/src/entity/payment/method2/Method2.php b/src/entity/payment/method2/Method2.php new file mode 100644 index 0000000..7a9578d --- /dev/null +++ b/src/entity/payment/method2/Method2.php @@ -0,0 +1,18 @@ +assertEquals(Method2::getName(), 'method2'); + } +} +