mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-23 19:02:59 +00:00
ec4098c8fd
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.
25 lines
515 B
PHP
25 lines
515 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
|
|
|
|
return [
|
|
[1900, 0],
|
|
[1900, 1],
|
|
[1991, 33333.33],
|
|
[1960, '22269.0'],
|
|
[1983, 30348.0],
|
|
[1984, 30843.0],
|
|
[2525, '01 Jan 2525'],
|
|
[1918, '11-Nov-1918'],
|
|
[1904, '28-Feb-1904'],
|
|
[ExcelError::NAN(), -10],
|
|
[ExcelError::VALUE(), '31-Dec-1899'],
|
|
[ExcelError::VALUE(), 'ABCD'],
|
|
[1900, false],
|
|
[1900, true],
|
|
[1900, 366], // because of fake leap day
|
|
[1901, 367],
|
|
];
|