| 1 |
<?php |
| 2 |
namespace Payplug; |
| 3 |
|
| 4 |
/** |
| 5 |
* @group functional |
| 6 |
* @group ci |
| 7 |
* @group recommended |
| 8 |
*/ |
| 9 |
class HttpClientFunctionalTest extends \PHPUnit_Framework_TestCase |
| 10 |
{ |
| 11 |
protected $_configuration; |
| 12 |
|
| 13 |
protected function setUp() |
| 14 |
{ |
| 15 |
$this->_configuration = new Payplug('abc'); |
| 16 |
} |
| 17 |
|
| 18 |
public function testAPIRequest() |
| 19 |
{ |
| 20 |
$httpClient = new Core\HttpClient($this->_configuration); |
| 21 |
$response = $httpClient->testRemote(); |
| 22 |
$this->assertEquals(200, $response['httpStatus']); |
| 23 |
} |
| 24 |
} |
| 25 |
|