ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
CellCollectionTest Class Reference
+ Inheritance diagram for CellCollectionTest:
+ Collaboration diagram for CellCollectionTest:

Public Member Functions

 setUp ()
 
 testCacheLastCell ()
 

Detailed Description

Definition at line 3 of file CellCollectionTest.php.

Member Function Documentation

◆ setUp()

CellCollectionTest::setUp ( )

Definition at line 6 of file CellCollectionTest.php.

7 {
8 if (!defined('PHPEXCEL_ROOT'))
9 {
10 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
11 }
12 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
13 }
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27

References defined.

◆ testCacheLastCell()

CellCollectionTest::testCacheLastCell ( )

Definition at line 16 of file CellCollectionTest.php.

17 {
19 foreach ($methods as $method) {
21 $workbook = new PHPExcel();
22 $cells = array('A1', 'A2');
23 $worksheet = $workbook->getActiveSheet();
24 $worksheet->setCellValue('A1', 1);
25 $worksheet->setCellValue('A2', 2);
26 $this->assertEquals($cells, $worksheet->getCellCollection(), "Cache method \"$method\".");
28 }
29 }
$worksheet
static getCacheStorageMethods()
Return the list of all available cache storage methods.
static initialize($method=self::cache_in_memory, $arguments=array())
Identify the cache storage method to use.
static finalize()
Clear the cache storage.

References $worksheet, PHPExcel_CachedObjectStorageFactory\finalize(), PHPExcel_CachedObjectStorageFactory\getCacheStorageMethods(), and PHPExcel_CachedObjectStorageFactory\initialize().

+ Here is the call graph for this function:

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