You are here

public function DateTest::testDateTimePHPToExcel1900 in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/DateTest.php \DateTest::testDateTimePHPToExcel1900()

@dataProvider providerDateTimePHPToExcel1900

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Shared/DateTest.php, line 64

Class

DateTest

Code

public function testDateTimePHPToExcel1900() {
  $result = call_user_func(array(
    'PHPExcel_Shared_Date',
    'setExcelCalendar',
  ), PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900);
  $args = func_get_args();
  $expectedResult = array_pop($args);
  $result = call_user_func_array(array(
    'PHPExcel_Shared_Date',
    'PHPToExcel',
  ), $args);
  $this
    ->assertEquals($expectedResult, $result, NULL, 1.0E-5);
}