From 47c6cf8ba2b5fb25ddd7b88f69d8573aafe206ab Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy Date: Thu, 13 Jun 2013 15:06:32 +0200 Subject: [PATCH] Payline: Creation du Bom + premier tests --- src/Payutc/Bom/Payline.php | 73 ++++++++++++++++++++++++++++++++++++++ tests/PaylineRodbTest.php | 27 ++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 src/Payutc/Bom/Payline.php create mode 100644 tests/PaylineRodbTest.php diff --git a/src/Payutc/Bom/Payline.php b/src/Payutc/Bom/Payline.php new file mode 100644 index 0000000..5b9fd09 --- /dev/null +++ b/src/Payutc/Bom/Payline.php @@ -0,0 +1,73 @@ +payline = new \paylineSDK( + Config::get('PAYLINE_MERCHANT_ID'), + Config::get('PAYLINE_ACCESS_KEY'), + Config::get('proxy_host'), + Config::get('proxy_port'), + Config::get('proxy_login'), + Config::get('proxy_password'), + Config::get('PAYLINE_PRODUCTION') + ); + } + + +} diff --git a/tests/PaylineRodbTest.php b/tests/PaylineRodbTest.php new file mode 100644 index 0000000..3feec52 --- /dev/null +++ b/tests/PaylineRodbTest.php @@ -0,0 +1,27 @@ +computeDataset(array( + )); + } + + public function testInitDontCrash() + { + $payline = new \Payutc\Bom\Payline(); + } + + +} + + +