Skip to content

Commit

Permalink
Adding constants for credentials values
Browse files Browse the repository at this point in the history
  • Loading branch information
abdala committed Sep 8, 2015
1 parent 22cf0bb commit 915db72
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
composer.phar
composer.lock
phpunit.xml
vendor/

!**/.gitkeep
6 changes: 1 addition & 5 deletions composer.json
Expand Up @@ -28,10 +28,6 @@
},
"require-dev": {
"omnipay/tests": "~2.0"
},
"extra": {
"branch-alias": {
"dev-master": "1.0"
}
}
}

5 changes: 5 additions & 0 deletions phpunit.xml.dist
Expand Up @@ -22,4 +22,9 @@
<directory>./src</directory>
</whitelist>
</filter>

<php>
<const name="PAGSEGURO_API_EMAIL" value="" />
<const name="PAGSEGURO_API_KEY" value="" />
</php>
</phpunit>
4 changes: 2 additions & 2 deletions tests/GatewayTest.php
Expand Up @@ -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',
Expand Down

0 comments on commit 915db72

Please sign in to comment.