ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
FileTest.php
Go to the documentation of this file.
1 <?php
2 
3 
4 require_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
testSetUseUploadTempDirectory()
Definition: FileTest.php:25
setUp()
Definition: FileTest.php:9
Create styles array
The data for the language used.
testGetUseUploadTempDirectory()
Definition: FileTest.php:17
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27