ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FileTest.php
Go to the documentation of this file.
1<?php
2
3
4require_once 'testDataFileIterator.php';
5
7{
8
9 public function setUp()
10 {
11 if (!defined('PHPEXCEL_ROOT')) {
12 define('PHPEXCEL_ROOT', APPLICATION_PATH . '/');
13 }
14 require_once(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
15 }
16
18 {
19 $expectedResult = FALSE;
20
21 $result = call_user_func(array('PHPExcel_Shared_File','getUseUploadTempDirectory'));
22 $this->assertEquals($expectedResult, $result);
23 }
24
26 {
27 $useUploadTempDirectoryValues = array(
28 TRUE,
29 FALSE,
30 );
31
32 foreach($useUploadTempDirectoryValues as $useUploadTempDirectoryValue) {
33 call_user_func(array('PHPExcel_Shared_File','setUseUploadTempDirectory'),$useUploadTempDirectoryValue);
34
35 $result = call_user_func(array('PHPExcel_Shared_File','getUseUploadTempDirectory'));
36 $this->assertEquals($useUploadTempDirectoryValue, $result);
37 }
38 }
39}
$result
An exception for terminatinating execution or to throw for unit testing.
testGetUseUploadTempDirectory()
Definition: FileTest.php:17
testSetUseUploadTempDirectory()
Definition: FileTest.php:25
setUp()
Definition: FileTest.php:9
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27