public function ColumnCellIteratorTest::testIteratorStartEndRange 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::testIteratorStartEndRange()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Worksheet/ ColumnCellIteratorTest.php, line 44
Class
Code
public function testIteratorStartEndRange() {
$iterator = new PHPExcel_Worksheet_ColumnCellIterator($this->mockWorksheet, 'A', 2, 4);
$ColumnCellIndexResult = 2;
$this
->assertEquals($ColumnCellIndexResult, $iterator
->key());
foreach ($iterator as $key => $ColumnCell) {
$this
->assertEquals($ColumnCellIndexResult++, $key);
$this
->assertInstanceOf('PHPExcel_Cell', $ColumnCell);
}
}