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 testGetters() { $objects = array(new AdAccount()); $cursor = new Cursor($objects, $this->response); $this->assertTrue($this->response === $cursor->getResponse()); $this->assertTrue($objects === $cursor->getObjects()); $this->assertEquals($this->after, $cursor->getAfter()); $this->assertEquals($this->before, $cursor->getBefore()); }