You are here

public function DateTest::testDateTimeFormattedPHPToExcel1900 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::testDateTimeFormattedPHPToExcel1900()

@dataProvider providerDateTimeFormattedPHPToExcel1900

File

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

Class

DateTest

Code

public function testDateTimeFormattedPHPToExcel1900() {
  $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',
    'FormattedPHPToExcel',
  ), $args);
  $this
    ->assertEquals($expectedResult, $result, NULL, 1.0E-5);
}