You are here

public function DateTimeTest::testDATEwith1904CalendarError in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/DateTimeTest.php \DateTimeTest::testDATEwith1904CalendarError()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/DateTimeTest.php, line 65

Class

DateTimeTest

Code

public function testDATEwith1904CalendarError() {
  PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904);
  $result = PHPExcel_Calculation_DateTime::DATE(1901, 1, 31);
  PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900);
  $this
    ->assertEquals($result, '#NUM!');
}