mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-22 07:03:42 +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.
74 lines
1.0 KiB
PHP
74 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
[
|
|
'',
|
|
null,
|
|
1,
|
|
],
|
|
[
|
|
'',
|
|
'',
|
|
1,
|
|
],
|
|
[
|
|
'',
|
|
'ABC',
|
|
0,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'QWERTYUIOP',
|
|
-1,
|
|
],
|
|
[
|
|
'#VALUE!',
|
|
'QWERTYUIOP',
|
|
'NaN',
|
|
],
|
|
'null length defaults to 0' => [
|
|
'',
|
|
'QWERTYUIOP',
|
|
null,
|
|
],
|
|
'omitted length defaults to 1' => [
|
|
'Q',
|
|
'QWERTYUIOP',
|
|
],
|
|
[
|
|
'ABC',
|
|
'ABCDEFGHI',
|
|
3,
|
|
],
|
|
[
|
|
'Ενα',
|
|
'Ενα δύο τρία τέσσερα πέντε',
|
|
3,
|
|
],
|
|
[
|
|
'Ενα δύο',
|
|
'Ενα δύο τρία τέσσερα πέντε',
|
|
7,
|
|
],
|
|
[
|
|
'Ενα δύο τρία',
|
|
'Ενα δύο τρία τέσσερα πέντε',
|
|
12,
|
|
],
|
|
[
|
|
'TR',
|
|
true,
|
|
2,
|
|
],
|
|
[
|
|
'FA',
|
|
false,
|
|
2,
|
|
],
|
|
'string not specified' => [
|
|
'exception',
|
|
],
|
|
];
|