10 if (!
defined(
'PHPEXCEL_ROOT')) {
11 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
13 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
15 $this->mockRow = $this->getMockBuilder(
'PHPExcel_Worksheet_Row')
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())
28 ->will($this->returnValue($this->mockRow));
36 $this->assertEquals($rowIndexResult, $iterator->key());
39 $this->assertEquals($rowIndexResult++,
$key);
40 $this->assertInstanceOf(
'PHPExcel_Worksheet_Row',
$row);
48 $this->assertEquals($rowIndexResult, $iterator->key());
51 $this->assertEquals($rowIndexResult++,
$key);
52 $this->assertInstanceOf(
'PHPExcel_Worksheet_Row',
$row);
59 $columnIndexResult = 4;
61 $this->assertEquals($columnIndexResult, $iterator->key());
63 for(
$i = 1;
$i < $columnIndexResult-1;
$i++) {
65 $this->assertEquals($columnIndexResult -
$i, $iterator->key());
testIteratorStartEndRange()
testIteratorSeekAndPrev()
testPrevOutOfRange()
PHPExcel_Exception
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
testSeekOutOfRange()
PHPExcel_Exception