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());
 }
예제 #2
0
 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());
 }