ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
WorksheetColumnTest Class Reference
+ Inheritance diagram for WorksheetColumnTest:
+ Collaboration diagram for WorksheetColumnTest:

Public Member Functions

 setUp ()
 
 testInstantiateColumnDefault ()
 
 testInstantiateColumnSpecified ()
 
 testGetCellIterator ()
 

Data Fields

 $mockWorksheet
 
 $mockColumn
 

Detailed Description

Definition at line 3 of file WorksheetColumnTest.php.

Member Function Documentation

◆ setUp()

WorksheetColumnTest::setUp ( )

Definition at line 8 of file WorksheetColumnTest.php.

References defined.

9  {
10  if (!defined('PHPEXCEL_ROOT')) {
11  define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
12  }
13  require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
14 
15  $this->mockWorksheet = $this->getMockBuilder('PHPExcel_Worksheet')
16  ->disableOriginalConstructor()
17  ->getMock();
18  $this->mockWorksheet->expects($this->any())
19  ->method('getHighestRow')
20  ->will($this->returnValue(5));
21  }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

◆ testGetCellIterator()

WorksheetColumnTest::testGetCellIterator ( )

Definition at line 40 of file WorksheetColumnTest.php.

References $column.

41  {
42  $column = new PHPExcel_Worksheet_Column($this->mockWorksheet);
43  $cellIterator = $column->getCellIterator();
44  $this->assertInstanceOf('PHPExcel_Worksheet_ColumnCellIterator', $cellIterator);
45  }
$column
Definition: 39dropdown.php:62

◆ testInstantiateColumnDefault()

WorksheetColumnTest::testInstantiateColumnDefault ( )

Definition at line 24 of file WorksheetColumnTest.php.

References $column.

25  {
26  $column = new PHPExcel_Worksheet_Column($this->mockWorksheet);
27  $this->assertInstanceOf('PHPExcel_Worksheet_Column', $column);
28  $columnIndex = $column->getColumnIndex();
29  $this->assertEquals('A', $columnIndex);
30  }
$column
Definition: 39dropdown.php:62

◆ testInstantiateColumnSpecified()

WorksheetColumnTest::testInstantiateColumnSpecified ( )

Definition at line 32 of file WorksheetColumnTest.php.

References $column.

33  {
34  $column = new PHPExcel_Worksheet_Column($this->mockWorksheet, 'E');
35  $this->assertInstanceOf('PHPExcel_Worksheet_Column', $column);
36  $columnIndex = $column->getColumnIndex();
37  $this->assertEquals('E', $columnIndex);
38  }
$column
Definition: 39dropdown.php:62

Field Documentation

◆ $mockColumn

WorksheetColumnTest::$mockColumn

Definition at line 6 of file WorksheetColumnTest.php.

◆ $mockWorksheet

WorksheetColumnTest::$mockWorksheet

Definition at line 5 of file WorksheetColumnTest.php.


The documentation for this class was generated from the following file: