diff --git a/lib/PayPal/Rest/ApiContext.php b/lib/PayPal/Rest/ApiContext.php index b691571..a1be160 100644 --- a/lib/PayPal/Rest/ApiContext.php +++ b/lib/PayPal/Rest/ApiContext.php @@ -83,7 +83,7 @@ class ApiContext * * @return string */ - public function getrequestId() + public function getRequestId() { if ($this->requestId == null) { $this->requestId = $this->generateRequestId(); @@ -102,7 +102,7 @@ class ApiContext public function resetRequestId() { $this->requestId = $this->generateRequestId(); - return $this->getrequestId(); + return $this->getRequestId(); } /** diff --git a/tests/PayPal/Test/Rest/ApiContextTest.php b/tests/PayPal/Test/Rest/ApiContextTest.php index 0fc1778..20b4547 100644 --- a/tests/PayPal/Test/Rest/ApiContextTest.php +++ b/tests/PayPal/Test/Rest/ApiContextTest.php @@ -21,14 +21,14 @@ class ApiContextTest extends PHPUnit_Framework_TestCase public function testGetRequestId() { - $requestId = $this->apiContext->getrequestId(); + $requestId = $this->apiContext->getRequestId(); $this->assertNotNull($requestId); - $this->assertEquals($requestId, $this->apiContext->getrequestId()); + $this->assertEquals($requestId, $this->apiContext->getRequestId()); } public function testResetRequestId() { - $requestId = $this->apiContext->getrequestId(); + $requestId = $this->apiContext->getRequestId(); $newRequestId = $this->apiContext->resetRequestId(); $this->assertNotNull($newRequestId); $this->assertNotEquals($newRequestId, $requestId);