You are here

public function ColumnIteratorTest::testIteratorFullRange in Loft Data Grids 6.2

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

File

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

Class

ColumnIteratorTest

Code

public function testIteratorFullRange() {
  $iterator = new PHPExcel_Worksheet_ColumnIterator($this->mockWorksheet);
  $columnIndexResult = 'A';
  $this
    ->assertEquals($columnIndexResult, $iterator
    ->key());
  foreach ($iterator as $key => $column) {
    $this
      ->assertEquals($columnIndexResult++, $key);
    $this
      ->assertInstanceOf('PHPExcel_Worksheet_Column', $column);
  }
}