mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-23 13:14:45 +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.
126 lines
2.5 KiB
PHP
126 lines
2.5 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
|
|
|
|
return [
|
|
[
|
|
[['Hello', 'World']],
|
|
[
|
|
'Hello World',
|
|
' ',
|
|
'',
|
|
],
|
|
],
|
|
[
|
|
[['Hello'], ['World']],
|
|
[
|
|
'Hello World',
|
|
'',
|
|
' ',
|
|
],
|
|
],
|
|
[
|
|
[['To', 'be', 'or', 'not', 'to', 'be']],
|
|
[
|
|
'To be or not to be',
|
|
' ',
|
|
'',
|
|
],
|
|
],
|
|
[
|
|
[
|
|
['1', '2', '3'],
|
|
['4', '5', '6'],
|
|
],
|
|
[
|
|
'1,2,3;4,5,6',
|
|
',',
|
|
';',
|
|
],
|
|
],
|
|
[
|
|
[
|
|
['Do', ' Or do not', ' There is no try', ' ', 'Anonymous'],
|
|
],
|
|
[
|
|
'Do. Or do not. There is no try. -Anonymous',
|
|
['.', '-'],
|
|
'',
|
|
],
|
|
],
|
|
[
|
|
[['Do'], [' Or do not'], [' There is no try'], [' '], ['Anonymous']],
|
|
[
|
|
'Do. Or do not. There is no try. -Anonymous',
|
|
'',
|
|
['.', '-'],
|
|
],
|
|
],
|
|
[
|
|
[
|
|
['Do', ' Or do not', ' There is no try', ' '],
|
|
['Anonymous', ExcelError::NA(), ExcelError::NA(), ExcelError::NA()],
|
|
],
|
|
[
|
|
'Do. Or do not. There is no try. -Anonymous',
|
|
'.',
|
|
'-',
|
|
],
|
|
],
|
|
[
|
|
[
|
|
['', '', '1'],
|
|
['', '', ExcelError::NA()],
|
|
['', '2', ''],
|
|
['3', ExcelError::NA(), ExcelError::NA()],
|
|
['', ExcelError::NA(), ExcelError::NA()],
|
|
['', '4', ExcelError::NA()],
|
|
],
|
|
[
|
|
'--1|-|-2-|3||-4',
|
|
'-',
|
|
'|',
|
|
],
|
|
],
|
|
[
|
|
[
|
|
['1'],
|
|
['2'],
|
|
['3'],
|
|
['4'],
|
|
],
|
|
[
|
|
'--1|-|-2-|3||-4',
|
|
'-',
|
|
'|',
|
|
true,
|
|
],
|
|
],
|
|
[
|
|
[['', 'BCD', 'FGH', 'JKLMN', 'PQRST', 'VWXYZ']],
|
|
[
|
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
|
['A', 'E', 'I', 'O', 'U'],
|
|
'',
|
|
],
|
|
],
|
|
'slash as column delimiter' => [
|
|
[['Hello', 'World']],
|
|
[
|
|
'Hello/World',
|
|
'/',
|
|
'',
|
|
],
|
|
],
|
|
'slash as row delimiter' => [
|
|
[['ho', 'w'], ['about', '#N/A'], ['t', 'hat']],
|
|
[
|
|
'ho.w/about/t.hat',
|
|
'.',
|
|
'/',
|
|
],
|
|
],
|
|
];
|