Files
PhpSpreadsheet/tests/data/Calculation/LookupRef/COLUMNonSpreadsheet.php
T
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

20 lines
776 B
PHP

<?php
declare(strict_types=1);
return [
'current column' => [2, 'omitted'],
'global name $E$2:$E$6' => [5, 'namedrangex'],
'global name $F$2:$H$2' => [6, 'namedrange3'],
'global name $F$4:$H$4' => [6, 'namedrangey'],
'out of scope name' => ['#NAME?', 'localname'],
'qualified cell existing sheet' => [1, 'OtherSheet!A1'],
'qualified cell non-existent sheet' => [1, 'UnknownSheet!A1'],
'single cell absolute' => [3, '$C$15'],
'single cell relative' => [3, 'C7'],
'unknown name' => ['#NAME?', 'namedrange2'],
'unknown name as first part of range' => ['#NAME?', 'Invalid:A2'],
'unknown name as second part of range' => ['#NAME?', 'A2:Invalid'],
//'qualified name' => [6, 'OtherSheet!localname'], // Never reaches function
];