public function ColumnCellIteratorTest::testIteratorFullRange in Loft Data Grids 6.2
Same name and namespace in other branches
- 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
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);
}
}