Skip to content

Commit

Permalink
Update FraudValidationTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudlabspro committed Dec 10, 2020
1 parent 5d85062 commit 5850b7c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/FraudValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ public function testInvalidApiKey() {

public function testApiKeyExist() {
if ($GLOBALS['testApiKey'] == 'YOUR_API_KEY') {
trigger_error("Enter a valid FraudLabs Pro API Key in tests/bootstrap.php for real testing.", E_USER_NOTICE);
echo "/*
* You could enter a FraudLabs Pro API Key in tests/bootstrap.php
* for real web service calling test.
*
* You could sign up for a free API key at https://www.fraudlabspro.com/pricing
* if you do not have one.
*/";
$this->assertEquals(
'YOUR_API_KEY',
$GLOBALS['testApiKey'],
);
} else {
$this->assertNotEquals(
'YOUR_API_KEY',
Expand Down

0 comments on commit 5850b7c

Please sign in to comment.