From 91306d0c31b92d3e059a52bf16bfd72ec66395e9 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 14 Aug 2016 02:09:14 +0100 Subject: [PATCH] Move data from unitTests to tests --- unitTests/dateTest.log | 126 ------------------ .../Shared/DateTimeExcelToTimestamp1900.data | 15 --- .../DateTimeExcelToTimestamp1900Timezone.data | 23 ---- .../Shared/DateTimeExcelToTimestamp1904.data | 10 -- 4 files changed, 174 deletions(-) delete mode 100644 unitTests/dateTest.log delete mode 100644 unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900.data delete mode 100644 unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900Timezone.data delete mode 100644 unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1904.data diff --git a/unitTests/dateTest.log b/unitTests/dateTest.log deleted file mode 100644 index f021458f..00000000 --- a/unitTests/dateTest.log +++ /dev/null @@ -1,126 +0,0 @@ -PHPExcel tests beginning -Xdebug not found, you should run the following at the command line: echo "zend_extension=/usr/lib64/php/modules/xdebug.so" > /etc/php.d/xdebug.ini -PHPUnit 5.2.10 by Sebastian Bergmann and contributors. - -Runtime: PHP 7.0.4 -Configuration: C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\phpunit.xml - -............................................................... 63 / 111 ( 56%) -..........................FFFFFFFFFFFFFFFFFFFFFF 111 / 111 (100%) - -Time: 176 ms, Memory: 10.00Mb - -There were 22 failures: - -1) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #0 (22269, 'America/New_York', -285138000) -Failed asserting that -285102000 matches expected -285138000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -2) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #1 (25569, 'America/New_York', -18000) -Failed asserting that 18000 matches expected -18000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -3) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #2 (30292, 'America/New_York', 408049200) -Failed asserting that 408085200 matches expected 408049200. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -4) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #3 (39611, 'America/New_York', 1213214400) -Failed asserting that 1213243200 matches expected 1213214400. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -5) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #4 (50424, 'America/New_York', 2147454000) -Failed asserting that 2147490000 matches expected 2147454000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -6) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #5 (22345.567889999998, 'America/New_York', -278522534) -Failed asserting that -278486534 matches expected -278522534. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -7) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #6 (22345.678899999999, 'America/New_York', -278512943) -Failed asserting that -278476943 matches expected -278512943. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -8) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #7 (0.5, 'America/New_York', 25200) -Failed asserting that 61200 matches expected 25200. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -9) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #8 (0.75, 'America/New_York', 46800) -Failed asserting that 82800 matches expected 46800. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -10) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #9 (0.12345, 'America/New_York', -7334) -Failed asserting that 28666 matches expected -7334. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -11) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #10 (41215, 'America/New_York', 1351800000) -Failed asserting that 1351828800 matches expected 1351800000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -12) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #11 (22269, 'Pacific/Auckland', -285076800) -Failed asserting that -285163200 matches expected -285076800. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -13) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #12 (25569, 'Pacific/Auckland', 43200) -Failed asserting that -43200 matches expected 43200. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -14) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #13 (30292, 'Pacific/Auckland', 408114000) -Failed asserting that 408020400 matches expected 408114000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -15) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #14 (39611, 'Pacific/Auckland', 1213272000) -Failed asserting that 1213185600 matches expected 1213272000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -16) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #15 (50423.5, 'Pacific/Auckland', 2147475600) -Failed asserting that 2147382000 matches expected 2147475600. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -17) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #16 (22345.567889999998, 'Pacific/Auckland', -278461334) -Failed asserting that -278547734 matches expected -278461334. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -18) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #17 (22345.678899999999, 'Pacific/Auckland', -278451743) -Failed asserting that -278538143 matches expected -278451743. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -19) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #18 (0.5, 'Pacific/Auckland', 90000) -Failed asserting that 0 matches expected 90000. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -20) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #19 (0.75, 'Pacific/Auckland', 111600) -Failed asserting that 21600 matches expected 111600. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -21) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #20 (0.12345, 'Pacific/Auckland', 57466) -Failed asserting that -32534 matches expected 57466. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -22) PHPExcel\Shared\DateTest::testDateTimeExcelToTimestamp1900Timezone with data set #21 (41215, 'Pacific/Auckland', 1351861200) -Failed asserting that 1351767600 matches expected 1351861200. - -C:\Projects\PHPOffice\PHPSpreadsheet\0.1\unitTests\Classes\src\Shared\DateTest.php:165 - -FAILURES! -Tests: 111, Assertions: 112, Failures: 22. diff --git a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900.data b/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900.data deleted file mode 100644 index d348b0aa..00000000 --- a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900.data +++ /dev/null @@ -1,15 +0,0 @@ -#Excel DateTimeStamp Result Comments -714, -2147472000 // PHP 32-bit Earliest Date 14-Dec-1901 -1461, -2082931200 // 31-Dec-1903 -1462, -2082844800 // Excel 1904 Calendar Base Date 01-Jan-1904 -1463, -2082758400 // 02-Jan-1904 -22269, -285120000 // 19-Dec-1960 -25569, 0 // PHP Base Date 01-Jan-1970 -30292, 408067200 // 07-Dec-1982 -39611, 1213228800 // 12-Jun-2008 -50424, 2147472000 // PHP 32-bit Latest Date 19-Jan-2038 -1234.56789, -2102494934 // 18-May-1903 13:37:46 -12345.6789, -1142494943 // 18-Oct-1933 16:17:37 -0.5, 43200 // 12:00:00 -0.75, 64800 // 18:00.00 -0.12345, 10666 // 02:57:46 diff --git a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900Timezone.data b/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900Timezone.data deleted file mode 100644 index 13ecbd10..00000000 --- a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1900Timezone.data +++ /dev/null @@ -1,23 +0,0 @@ -#Excel DateTimeStamp Timezone Result Comments -22269, 'America/New_York', -285138000 // 19-Dec-1960 00:00:00 UST -25569, 'America/New_York', -18000 // PHP Base Date 01-Jan-1970 00:00:00 UST -30292, 'America/New_York', 408049200 // 07-Dec-1982 00:00:00 UST -39611, 'America/New_York', 1213214400 // 12-Jun-2008 00:00:00 UST -50424, 'America/New_York', 2147454000 // PHP 32-bit Latest Date 19-Jan-2038 00:00:00 UST -22345.56789, 'America/New_York', -278522534 // 18-May-1903 13:37:46 UST -22345.6789, 'America/New_York', -278512943 // 18-Oct-1933 16:17:37 UST -0.5, 'America/New_York', 25200 // 12:00:00 UST -0.75, 'America/New_York', 46800 // 18:00.00 UST -0.12345, 'America/New_York', -7334 // 02:57:46 UST -41215, 'America/New_York', 1351800000 // 02-Nov-2012 00:00:00 UST -22269, 'Pacific/Auckland', -285076800 // 19-Dec-1960 00:00:00 UST -25569, 'Pacific/Auckland', 43200 // PHP Base Date 01-Jan-1970 00:00:00 UST -30292, 'Pacific/Auckland', 408114000 // 07-Dec-1982 00:00:00 UST -39611, 'Pacific/Auckland', 1213272000 // 12-Jun-2008 00:00:00 UST -50423.5, 'Pacific/Auckland', 2147475600 // PHP 32-bit Latest Date 19-Jan-2038 00:00:00 UST -22345.56789, 'Pacific/Auckland', -278461334 // 18-May-1903 13:37:46 UST -22345.6789, 'Pacific/Auckland', -278451743 // 18-Oct-1933 16:17:37 UST -0.5, 'Pacific/Auckland', 90000 // 12:00:00 UST -0.75, 'Pacific/Auckland', 111600 // 18:00.00 UST -0.12345, 'Pacific/Auckland', 57466 // 02:57:46 UST -41215, 'Pacific/Auckland', 1351861200 // 02-Nov-2012 00:00:00 UST diff --git a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1904.data b/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1904.data deleted file mode 100644 index 5501ad17..00000000 --- a/unitTests/rawTestData/Shared/DateTimeExcelToTimestamp1904.data +++ /dev/null @@ -1,10 +0,0 @@ -#Excel DateTimeStamp Result -1462, -1956528000 -1463, -1956441600 -22269, -158803200 -25569, 126316800 -30292, 534384000 -39611, 1339545600 -0.25, 21600 // 06:00:00 -0.3333333333333333333, 28800 // 08:00.00 -0.54321, 46933 // 02:57:46