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

25 lines
506 B
PHP

<?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
// Excel Result, Argument
return [
[19, 22269],
[1, 30348],
[10, 30843],
[11, '11-Nov-1918'],
[28, '28-Feb-1904'],
[25, '1960-12-25'],
[ExcelError::VALUE(), '30-Feb-1904'],
[ExcelError::VALUE(), 'Invalid'],
// The following will all differ between Excel and OpenOffice
[ExcelError::NAN(), -1],
[1, 1],
[0, 0.5],
[0, 0],
[1, true],
[0, false],
];