Renamed getRequestId method in ApiContext

- Fixes #287
This commit is contained in:
Jay Patel
2015-04-15 11:27:52 -05:00
parent c181af361d
commit 553589e511
2 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ class ApiContext
* *
* @return string * @return string
*/ */
public function getrequestId() public function getRequestId()
{ {
if ($this->requestId == null) { if ($this->requestId == null) {
$this->requestId = $this->generateRequestId(); $this->requestId = $this->generateRequestId();
@@ -102,7 +102,7 @@ class ApiContext
public function resetRequestId() public function resetRequestId()
{ {
$this->requestId = $this->generateRequestId(); $this->requestId = $this->generateRequestId();
return $this->getrequestId(); return $this->getRequestId();
} }
/** /**

View File

@@ -21,14 +21,14 @@ class ApiContextTest extends PHPUnit_Framework_TestCase
public function testGetRequestId() public function testGetRequestId()
{ {
$requestId = $this->apiContext->getrequestId(); $requestId = $this->apiContext->getRequestId();
$this->assertNotNull($requestId); $this->assertNotNull($requestId);
$this->assertEquals($requestId, $this->apiContext->getrequestId()); $this->assertEquals($requestId, $this->apiContext->getRequestId());
} }
public function testResetRequestId() public function testResetRequestId()
{ {
$requestId = $this->apiContext->getrequestId(); $requestId = $this->apiContext->getRequestId();
$newRequestId = $this->apiContext->resetRequestId(); $newRequestId = $this->apiContext->resetRequestId();
$this->assertNotNull($newRequestId); $this->assertNotNull($newRequestId);
$this->assertNotEquals($newRequestId, $requestId); $this->assertNotEquals($newRequestId, $requestId);