You are here

public function ColumnCellIteratorTest::testIteratorFullRange in Loft Data Grids 6.2

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

File

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

Class

ColumnCellIteratorTest

Code

public function testIteratorFullRange() {
  $iterator = new PHPExcel_Worksheet_ColumnCellIterator($this->mockWorksheet, 'A');
  $ColumnCellIndexResult = 1;
  $this
    ->assertEquals($ColumnCellIndexResult, $iterator
    ->key());
  foreach ($iterator as $key => $ColumnCell) {
    $this
      ->assertEquals($ColumnCellIndexResult++, $key);
    $this
      ->assertInstanceOf('PHPExcel_Cell', $ColumnCell);
  }
}