Example #1
0
 public function testWrittenDataCanBeReadThroughIterator()
 {
     $filePath = $this->createTemporaryFilePath();
     $file = new File($filePath);
     $data = $this->sampleRows;
     $file->writeAll($data);
     $newFile = new File($filePath);
     foreach ($newFile as $index => $row) {
         $this->assertSame($this->sampleRows[$index], $row);
     }
 }