This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/tests/PayPal/Test/Rest/ApiContextTest.php
Jay Patel 8c907803e3 [PSR] Fixed Samples
- Using `php-cs-fixer` tool.
2016-07-14 13:12:15 -05:00

37 lines
793 B
PHP

<?php
use PayPal\Rest\ApiContext;
/**
* Test class for ApiContextTest.
*
*/
class ApiContextTest extends PHPUnit_Framework_TestCase
{
/**
* @var ApiContext
*/
public $apiContext;
public function setUp()
{
$this->apiContext = new ApiContext();
}
public function testGetRequestId()
{
$requestId = $this->apiContext->getRequestId();
$this->assertNotNull($requestId);
$this->assertEquals($requestId, $this->apiContext->getRequestId());
}
public function testResetRequestId()
{
$requestId = $this->apiContext->getRequestId();
$newRequestId = $this->apiContext->resetRequestId();
$this->assertNotNull($newRequestId);
$this->assertNotEquals($newRequestId, $requestId);
}
}