public function testGetters()
 {
     $response = $this->createResponseChainMock(1);
     $cursor = new Cursor($response, $this->objectPrototype);
     $this->assertTrue($response === $cursor->getResponse());
     $this->assertTrue($response === $cursor->getLastResponse());
     $this->assertNull($cursor->getAfter());
     $this->assertNull($cursor->getBefore());
 }
 public function testRequestParamReset()
 {
     $response = $this->createResponseChainMock(1);
     $cursor = new Cursor($response, $this->objectPrototype);
     $params = $cursor->getLastResponse()->getRequest()->getQueryParams();
     $params->offsetSet('after', $this->getUniquePageId());
     $params->offsetSet('before', $this->getUniquePageId());
     $cursor->fetchAfter();
     $params2 = $cursor->getLastResponse()->getRequest()->getQueryParams();
     $this->assertNotEquals($params->offsetGet('after'), $params2->offsetGet('after'));
 }