Example #1
0
 public function testReset()
 {
     $row = ['id' => 1, 'foo' => 'bar'];
     $r = new Pseudo\Result();
     $r->addRow($row);
     $this->assertEquals($row, $r->nextRow());
     $this->assertEquals(null, $r->nextRow());
     $r->reset();
     $this->assertEquals($row, $r->nextRow());
 }