public function testToArrayNotNullTotal()
 {
     $subject = new CursorPaginatedResponse(null, 1, 2, 3, 4);
     $expected = ['before' => 1, 'after' => 2, 'limit' => 3, 'total' => 4];
     $this->assertEquals($expected, $subject->toArray());
 }
 public function testCursorPaginatedResponseGettersSetters()
 {
     $response = new CursorPaginatedResponse(null, 0, 0, 0, 0);
     $response->setData(self::DATA);
     $response->setBefore(self::BEFORE);
     $response->setAfter(self::AFTER);
     $response->setLimit(self::LIMIT);
     $response->setTotal(self::TOTAL);
     $this->assertEquals(self::DATA, $response->getData());
     $this->assertEquals(self::BEFORE, $response->getBefore());
     $this->assertEquals(self::AFTER, $response->getAfter());
     $this->assertEquals(self::LIMIT, $response->getLimit());
     $this->assertEquals(self::TOTAL, $response->getTotal());
 }