PhpSpreadsheet/tests/data/Calculation/TextData/MID.php

107 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
return [
[
'',
null,
1,
1,
],
[
'',
'',
1,
1,
],
[
'#VALUE!',
'QWERTYUIOP',
0,
1,
],
[
'#VALUE!',
'QWERTYUIOP',
5,
-1,
],
[
'#VALUE!',
'QWERTYUIOP',
'NaN',
1,
],
[
'#VALUE!',
'QWERTYUIOP',
2,
'NaN',
],
'length null treated as zero' => [
'',
'QWERTYUIOP',
2,
null,
],
'length not specified' => [
'exception',
'QWERTYUIOP',
5,
],
'start not specified' => [
'exception',
'QWERTYUIOP',
],
'string not specified' => [
'exception',
],
[
'IOP',
'QWERTYUIOP',
8,
20,
],
[
'',
'QWERTYUIOP',
999,
2,
],
[
'DEF',
'ABCDEFGHI',
4,
3,
],
[
'δύο',
'Ενα δύο τρία τέσσερα πέντε',
5,
3,
],
[
'δύο τρία',
'Ενα δύο τρία τέσσερα πέντε',
5,
8,
],
[
'τρία τέσσερα',
'Ενα δύο τρία τέσσερα πέντε',
9,
12,
],
[
'R',
true,
2,
1,
],
[
'AL',
false,
2,
2,
],
];