4 require_once
'testDataFileIterator.php';
11 if (!
defined(
'PHPEXCEL_ROOT')) {
12 define(
'PHPEXCEL_ROOT', APPLICATION_PATH .
'/');
14 require_once(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
19 $calendarValues =
array(
24 foreach($calendarValues as $calendarValue) {
25 $result = call_user_func(
array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),$calendarValue);
32 $unsupportedCalendar =
'2012';
33 $result = call_user_func(
array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),$unsupportedCalendar);
43 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
47 $args = func_get_args();
48 $expectedResult = array_pop($args);
50 $expectedResult += gmmktime(0,0,0);
52 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'ExcelToPHP'),$args);
53 $this->assertEquals($expectedResult,
$result);
67 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
71 $args = func_get_args();
72 $expectedResult = array_pop($args);
73 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'PHPToExcel'),$args);
74 $this->assertEquals($expectedResult,
$result, NULL, 1E-5);
88 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
92 $args = func_get_args();
93 $expectedResult = array_pop($args);
94 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'FormattedPHPToExcel'),$args);
95 $this->assertEquals($expectedResult,
$result, NULL, 1E-5);
109 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
113 $args = func_get_args();
114 $expectedResult = array_pop($args);
116 $expectedResult += gmmktime(0,0,0);
118 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'ExcelToPHP'),$args);
119 $this->assertEquals($expectedResult,
$result);
133 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
137 $args = func_get_args();
138 $expectedResult = array_pop($args);
139 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'PHPToExcel'),$args);
140 $this->assertEquals($expectedResult,
$result, NULL, 1E-5);
153 $args = func_get_args();
154 $expectedResult = array_pop($args);
155 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'isDateTimeFormatCode'),$args);
156 $this->assertEquals($expectedResult,
$result);
170 array(
'PHPExcel_Shared_Date',
'setExcelCalendar'),
174 $args = func_get_args();
175 $expectedResult = array_pop($args);
177 $expectedResult += gmmktime(0,0,0);
179 $result = call_user_func_array(
array(
'PHPExcel_Shared_Date',
'ExcelToPHP'),$args);
180 $this->assertEquals($expectedResult,
$result);
testIsDateTimeFormatCode()
providerIsDateTimeFormatCode
testDateTimeFormattedPHPToExcel1900()
providerDateTimeFormattedPHPToExcel1900
providerDateTimeExcelToPHP1904()
testDateTimePHPToExcel1904()
providerDateTimePHPToExcel1904
providerDateTimeFormattedPHPToExcel1900()
testDateTimeExcelToPHP1904()
providerDateTimeExcelToPHP1904
testDateTimeExcelToPHP1900()
providerDateTimeExcelToPHP1900
testSetExcelCalendarWithInvalidValue()
Create styles array
The data for the language used.
providerDateTimeExcelToPHP1900Timezone()
providerDateTimePHPToExcel1900()
const CALENDAR_WINDOWS_1900
constants
providerIsDateTimeFormatCode()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
providerDateTimePHPToExcel1904()
testDateTimePHPToExcel1900()
providerDateTimePHPToExcel1900
testDateTimeExcelToPHP1900Timezone()
providerDateTimeExcelToPHP1900Timezone
providerDateTimeExcelToPHP1900()