PhpSpreadsheet/tests/data/Calculation/DateTime/WEEKDAY.php
Mark Baker 9ad6de620e
Refactoring of date time tests (#1101)
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.

* Separate out date/time tests into individual tests

* Need to update the version of phpunit at some point to deal with the new assertions and deprecated assertions

* Appease the CS Gods

* More refactoring of Date/Time tests

* Replace self assertions with instance assertions (looking forward to upgrading phpunit)

* Finish refactoring of date/time tests as individual tests

* Test for DateTimeInterface rather than for DateTime

* A few strict comparisons

* Fix to test names
2019-07-21 20:55:41 +02:00

114 lines
1.3 KiB
PHP

<?php
return [
[
5,
'24-Oct-1968',
],
[
4,
'24-Oct-1968', 2,
],
[
3,
'24-Oct-1968', 3,
],
[
4,
'2000-06-14',
],
[
3,
'2000-06-14', 2,
],
[
2,
'2000-06-14', 3,
],
[
4,
'1996-07-24',
],
[
3,
'1996-07-24', 2,
],
[
2,
'1996-07-24', 3,
],
[
7,
'1996-07-27',
],
[
6,
'1996-07-27', 2,
],
[
5,
'1996-07-27', 3,
],
[
1,
'1977-7-31',
],
[
7,
'1977-7-31', 2,
],
[
6,
'1977-7-31', 3,
],
[
2,
'1977-8-1',
],
[
1,
'1977-8-1', 2,
],
[
0,
'1977-8-1', 3,
],
[
7,
'1900-2-5', 2,
],
[
4,
'1900-2-1',
],
[
6,
38093,
],
[
5,
38093, 2,
],
[
4,
38093, 3,
],
[
'#VALUE!',
'3/7/1977', 'A',
],
[
'#NUM!',
'3/7/1977', 0,
],
[
'#VALUE!',
'Invalid',
1,
],
[
'#NUM!',
-1,
],
];