Files
Adrien Crivelli ec4098c8fd Strict mode for all tests
While we might never be able to have 100% of our code strict, we can at
the very least do it for all of our tests. This ensures that our tests
are using our API with the types as intended by the test author, and not
silently be cast to what our API requires.
2023-09-07 17:44:56 +08:00

29 lines
587 B
PHP

<?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[1, 0],
[12, 22269.0],
[2, 30348.0],
[6, 30843.0],
[11, '11-Nov-1918'],
[2, '28-Feb-1904'],
[7, '01 Jul 2003'],
[4, '38094'],
[12, 'Dec 2003'],
[12, '1960-12-25'],
[11, '1918-11-01'],
[ExcelError::VALUE(), '1918-13-11'],
[ExcelError::NAN(), -10],
[ExcelError::VALUE(), 'ABCD'],
[1, false],
[1, true],
[3, 61],
[2, 60], // because of fake leap day
[12, 366], // because of fake leap day
[1, 367],
];