ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
TimeZoneTest Class Reference
+ Inheritance diagram for TimeZoneTest:
+ Collaboration diagram for TimeZoneTest:

Public Member Functions

 setUp ()
 
 testSetTimezone ()
 
 testSetTimezoneWithInvalidValue ()
 

Detailed Description

Definition at line 4 of file TimeZoneTest.php.

Member Function Documentation

◆ setUp()

TimeZoneTest::setUp ( )

Definition at line 7 of file TimeZoneTest.php.

References defined.

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

◆ testSetTimezone()

TimeZoneTest::testSetTimezone ( )

Definition at line 15 of file TimeZoneTest.php.

References $result, and array.

16  {
17  $timezoneValues = array(
18  'Europe/Prague',
19  'Asia/Tokyo',
20  'America/Indiana/Indianapolis',
21  'Pacific/Honolulu',
22  'Atlantic/St_Helena',
23  );
24 
25  foreach($timezoneValues as $timezoneValue) {
26  $result = call_user_func(array('PHPExcel_Shared_TimeZone','setTimezone'),$timezoneValue);
27  $this->assertTrue($result);
28  }
29 
30  }
$result
Create styles array
The data for the language used.

◆ testSetTimezoneWithInvalidValue()

TimeZoneTest::testSetTimezoneWithInvalidValue ( )

Definition at line 32 of file TimeZoneTest.php.

References $result, and array.

33  {
34  $unsupportedTimezone = 'Etc/GMT+10';
35  $result = call_user_func(array('PHPExcel_Shared_TimeZone','setTimezone'),$unsupportedTimezone);
36  $this->assertFalse($result);
37  }
$result
Create styles array
The data for the language used.

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