public function RowIteratorTest::testIteratorStartEndRange in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/RowIteratorTest.php \RowIteratorTest::testIteratorStartEndRange()
File
- vendor/
phpoffice/ phpexcel/ unitTests/ Classes/ PHPExcel/ Worksheet/ RowIteratorTest.php, line 44
Class
Code
public function testIteratorStartEndRange() {
$iterator = new PHPExcel_Worksheet_RowIterator($this->mockWorksheet, 2, 4);
$rowIndexResult = 2;
$this
->assertEquals($rowIndexResult, $iterator
->key());
foreach ($iterator as $key => $row) {
$this
->assertEquals($rowIndexResult++, $key);
$this
->assertInstanceOf('PHPExcel_Worksheet_Row', $row);
}
}