ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FileTest Class Reference
+ Inheritance diagram for FileTest:
+ Collaboration diagram for FileTest:

Public Member Functions

 setUp ()
 
 testGetUseUploadTempDirectory ()
 
 testSetUseUploadTempDirectory ()
 

Detailed Description

Definition at line 6 of file FileTest.php.

Member Function Documentation

◆ setUp()

FileTest::setUp ( )

Definition at line 9 of file FileTest.php.

References defined.

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

◆ testGetUseUploadTempDirectory()

FileTest::testGetUseUploadTempDirectory ( )

Definition at line 17 of file FileTest.php.

References $result, and array.

18  {
19  $expectedResult = FALSE;
20 
21  $result = call_user_func(array('PHPExcel_Shared_File','getUseUploadTempDirectory'));
22  $this->assertEquals($expectedResult, $result);
23  }
$result
Create styles array
The data for the language used.

◆ testSetUseUploadTempDirectory()

FileTest::testSetUseUploadTempDirectory ( )

Definition at line 25 of file FileTest.php.

References $result, and array.

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  }
$result
Create styles array
The data for the language used.

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