Definition at line 3 of file RowIteratorTest.php.
◆ setUp()
RowIteratorTest::setUp |
( |
| ) |
|
Definition at line 8 of file RowIteratorTest.php.
References defined.
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));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testIteratorFullRange()
RowIteratorTest::testIteratorFullRange |
( |
| ) |
|
Definition at line 32 of file RowIteratorTest.php.
References $key, and $row.
36 $this->assertEquals($rowIndexResult, $iterator->key());
39 $this->assertEquals($rowIndexResult++,
$key);
40 $this->assertInstanceOf(
'PHPExcel_Worksheet_Row',
$row);
◆ testIteratorSeekAndPrev()
RowIteratorTest::testIteratorSeekAndPrev |
( |
| ) |
|
Definition at line 56 of file RowIteratorTest.php.
References $i.
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()
RowIteratorTest::testIteratorStartEndRange |
( |
| ) |
|
Definition at line 44 of file RowIteratorTest.php.
References $key, and $row.
48 $this->assertEquals($rowIndexResult, $iterator->key());
51 $this->assertEquals($rowIndexResult++,
$key);
52 $this->assertInstanceOf(
'PHPExcel_Worksheet_Row',
$row);
◆ testPrevOutOfRange()
RowIteratorTest::testPrevOutOfRange |
( |
| ) |
|
◆ testSeekOutOfRange()
RowIteratorTest::testSeekOutOfRange |
( |
| ) |
|
◆ $mockRow
RowIteratorTest::$mockRow |
◆ $mockWorksheet
RowIteratorTest::$mockWorksheet |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/RowIteratorTest.php