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