You are here

public function RowIteratorTest::testIteratorStartEndRange 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::testIteratorStartEndRange()

File

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

Class

RowIteratorTest

Code

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