You are here

public function RowCellIteratorTest::testIteratorStartEndRange in Loft Data Grids 6.2

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

File

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

Class

RowCellIteratorTest

Code

public function testIteratorStartEndRange() {
  $iterator = new PHPExcel_Worksheet_RowCellIterator($this->mockWorksheet, 2, 'B', 'D');
  $RowCellIndexResult = 'B';
  $this
    ->assertEquals($RowCellIndexResult, $iterator
    ->key());
  foreach ($iterator as $key => $RowCell) {
    $this
      ->assertEquals($RowCellIndexResult++, $key);
    $this
      ->assertInstanceOf('PHPExcel_Cell', $RowCell);
  }
}