You are here

public function RowIteratorTest::testIteratorFullRange in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/RowIteratorTest.php \RowIteratorTest::testIteratorFullRange()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/RowIteratorTest.php, line 32

Class

RowIteratorTest

Code

public function testIteratorFullRange() {
  $iterator = new PHPExcel_Worksheet_RowIterator($this->mockWorksheet);
  $rowIndexResult = 1;
  $this
    ->assertEquals($rowIndexResult, $iterator
    ->key());
  foreach ($iterator as $key => $row) {
    $this
      ->assertEquals($rowIndexResult++, $key);
    $this
      ->assertInstanceOf('PHPExcel_Worksheet_Row', $row);
  }
}