public function ColumnIteratorTest::testIteratorStartEndRange in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/ColumnIteratorTest.php \ColumnIteratorTest::testIteratorStartEndRange()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Worksheet/ ColumnIteratorTest.php, line 44
Class
Code
public function testIteratorStartEndRange() {
$iterator = new PHPExcel_Worksheet_ColumnIterator($this->mockWorksheet, 'B', 'D');
$columnIndexResult = 'B';
$this
->assertEquals($columnIndexResult, $iterator
->key());
foreach ($iterator as $key => $column) {
$this
->assertEquals($columnIndexResult++, $key);
$this
->assertInstanceOf('PHPExcel_Worksheet_Column', $column);
}
}