Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bob
committed
Nov 29, 2016
1 parent
8f7395f
commit 99a5bc1
Showing
6 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<phpunit bootstrap="./tests/init.php" colors="true"> | ||
<php> | ||
<ini name="display_errors" value="stderr" /> | ||
<ini name="error_log" value="/dev/null" /> | ||
</php> | ||
<testsuite name="Unit tests"> | ||
<directory>tests/</directory> | ||
</testsuite> | ||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
class apiUnitTest extends PHPUnit_Framework_TestCase { | ||
|
||
protected function setUp() { | ||
parent::setUp(); | ||
} | ||
|
||
public function testCreateClientInstance() { | ||
$oCardGate = new cardgate\api\Client( 1, 'fake_key', TRUE ); | ||
$oCardGate->setLanguage( 'nl' ); | ||
$oCardGate->version()->setPlatformName( 'PHP' ); | ||
$oCardGate->version()->setPlatformVersion( phpversion() ); | ||
$oCardGate->version()->setPluginName( 'Test Implementation' ); | ||
$oCardGate->version()->setPluginVersion( '0.0.1' ); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
require_once dirname( __FILE__ ) . '/../src/Autoloader.php'; | ||
|
||
cardgate\api\Autoloader::register(); |