You are here

public function RowCellIteratorTest::testIteratorFullRange in Loft Data Grids 7.2

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

File

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

Class

RowCellIteratorTest

Code

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