Files
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

35 lines
723 B
PHP

<?php
declare(strict_types=1);
return [
'range does not count bool, null, text string' => [
3,
[
// The index simulates a cell value
'0.1.A' => 'A',
'0.2.A' => 1,
'0.3.A' => true,
'0.4.A' => 2.9,
'0.5.A' => false,
'0.6.A' => '3',
'0.7.A' => '',
'0.8.A' => null,
'0.9.A' => 9,
],
],
'direct values also do not count bool, null, text string' => [
3,
// No index indicates arguments passed as literals rather than cell values
'A',
1,
true,
2.9,
false,
'3',
'',
null,
9,
],
];