public function testShouldGetAllInArrayFormat()
{
// Arrange
$items = [['name' => 'A'], ['name' => 'B'], ['name' => 'C']];
$cursor = $this->getCursor(stdClass::class, $items);
$this->setProtected($cursor, 'position', 1);
// Assert
$result = $cursor->toArray();
$this->assertEquals($items, $result);
}