From 915db7217858e53f7d5e429ccab7b8b24a881e7f Mon Sep 17 00:00:00 2001 From: Abdala Cerqueira Date: Tue, 8 Sep 2015 11:20:58 -0300 Subject: [PATCH] Adding constants for credentials values --- .gitignore | 1 + composer.json | 6 +----- phpunit.xml.dist | 5 +++++ tests/GatewayTest.php | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a9f3e07..02519ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ composer.phar composer.lock +phpunit.xml vendor/ !**/.gitkeep diff --git a/composer.json b/composer.json index 43ebc59..e9e8bf1 100755 --- a/composer.json +++ b/composer.json @@ -28,10 +28,6 @@ }, "require-dev": { "omnipay/tests": "~2.0" - }, - "extra": { - "branch-alias": { - "dev-master": "1.0" - } } } + diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a35b736..e58cef7 100755 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,4 +22,9 @@ ./src + + + + + diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 69cec9c..e0f4383 100755 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -28,8 +28,8 @@ public function setUp() $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); $this->options = array( - 'email' => 'abdala.cerqueira@gmail.com', - 'token' => 'A13FB5694A124A38A42CFE5624C0DE23', + 'email' => PAGSEGURO_API_EMAIL, + 'token' => PAGSEGURO_API_KEY, 'sandbox' => true, 'returnUrl' => 'https://www.example.com/return', 'cancelUrl' => 'https://www.example.com/cancel',