ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
CellCollectionTest.php
Go to the documentation of this file.
1<?php
2
4{
5
6 public function setUp()
7 {
8 if (!defined('PHPEXCEL_ROOT'))
9 {
10 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
11 }
12 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
13 }
14
15
16 public function testCacheLastCell()
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 }
30
31}
$worksheet
An exception for terminatinating execution or to throw for unit testing.
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.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27