PhpSpreadsheet/tests/data/Calculation/DateTime/DAY.php
Mark Baker 342ffb629b
Refactoring of math trig tests (#1102)
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.

* First pass at moving MathTrig tests into individual test files

* Appeasement to the great goddess PHPCS

* Appeasement to the great goddess PHPCS

* Minor scrutinizer issue resolved

* More refactoring of tests into individual test files fr each math/trig function

* More work on the math/trig test refactoring, plus a bit of tidyup of date/time tests as well

* Fix test

* Fix docblock in test

* Finish refactoring Math/Trig tests into separate files

* Fix SubTotal Test

* Import additional classes for SubTotal test
2019-07-23 00:50:30 +02:00

57 lines
1.0 KiB
PHP

<?php
// Date Value, Result
return [
[
19, // Result for Excel
19, // Result for OpenOffice
22269,
],
[
1, // Result for Excel
1, // Result for OpenOffice
30348,
],
[
10, // Result for Excel
10, // Result for OpenOffice
30843,
],
[
11, // Result for Excel
11, // Result for OpenOffice
'11-Nov-1918',
],
[
28, // Result for Excel
28, // Result for OpenOffice
'28-Feb-1904',
],
[
'#VALUE!', // Result for Excel
'#VALUE!', // Result for OpenOffice
'Invalid',
],
[
'#NUM!', // Result for Excel
29, // Result for OpenOffice
-1,
],
[
1, // Result for Excel
31, // Result for OpenOffice
1,
],
[
0, // Result for Excel
30, // Result for OpenOffice
0.5,
],
[
0, // Result for Excel
30, // Result for OpenOffice
0,
],
];