PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.2.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.2.0
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / phpoffice / phpexcel / unitTests / Classes / PHPExcel / Worksheet / CellCollectionTest.php

CellCollectionTest.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 2.2.0, at vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/CellCollectionTest.php

32 lines 805 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class CellCollectionTest extends PHPUnit_Framework_TestCase
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 {
18 $methods = PHPExcel_CachedObjectStorageFactory::getCacheStorageMethods();
19 foreach ($methods as $method) {
20 PHPExcel_CachedObjectStorageFactory::initialize($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\".");
27 PHPExcel_CachedObjectStorageFactory::finalize();
28 }
29 }
30
31 }
32