You are here

public function DateTimeTest::testDATEtoPHP in Loft Data Grids 7.2

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

File

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

Class

DateTimeTest

Code

public function testDATEtoPHP() {
  PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
  $result = PHPExcel_Calculation_DateTime::DATE(2012, 1, 31);
  PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
  $this
    ->assertEquals(1327968000, $result, NULL, 1.0E-8);
}