10 if (!
defined(
'PHPEXCEL_ROOT')) {
11 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
13 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
15 $this->mockCell = $this->getMockBuilder(
'PHPExcel_Cell')
16 ->disableOriginalConstructor()
19 $this->mockWorksheet = $this->getMockBuilder(
'PHPExcel_Worksheet')
20 ->disableOriginalConstructor()
23 $this->mockWorksheet->expects($this->any())
24 ->method(
'getHighestRow')
25 ->will($this->returnValue(5));
26 $this->mockWorksheet->expects($this->any())
27 ->method(
'getCellByColumnAndRow')
28 ->will($this->returnValue($this->mockCell));
35 $ColumnCellIndexResult = 1;
36 $this->assertEquals($ColumnCellIndexResult, $iterator->key());
38 foreach($iterator as
$key => $ColumnCell) {
39 $this->assertEquals($ColumnCellIndexResult++,
$key);
40 $this->assertInstanceOf(
'PHPExcel_Cell', $ColumnCell);
47 $ColumnCellIndexResult = 2;
48 $this->assertEquals($ColumnCellIndexResult, $iterator->key());
50 foreach($iterator as
$key => $ColumnCell) {
51 $this->assertEquals($ColumnCellIndexResult++,
$key);
52 $this->assertInstanceOf(
'PHPExcel_Cell', $ColumnCell);
59 $columnIndexResult = 4;
61 $this->assertEquals($columnIndexResult, $iterator->key());
63 for(
$i = 1;
$i < $columnIndexResult-1;
$i++) {
65 $this->assertEquals($columnIndexResult -
$i, $iterator->key());
testPrevOutOfRange()
PHPExcel_Exception
testSeekOutOfRange()
PHPExcel_Exception
testIteratorStartEndRange()
testIteratorSeekAndPrev()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'