Skip to content

Commit ba99bd1

Browse files
committed
Add Test
1 parent d63e6b1 commit ba99bd1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/PhpSpreadsheetTests/Calculation/Functions/TextData/ConcatenateRangeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public function testIssue4061Value(): void
5959
self::assertSame('a-1', $sheet->getCell('B1')->getCalculatedValue());
6060
self::assertSame('b-2', $sheet->getCell('B2')->getCalculatedValue());
6161
self::assertSame('c-3', $sheet->getCell('B3')->getCalculatedValue());
62+
$sheet->getCell('F1')
63+
->setValue('=CONCATENATE("X", C2:C3, "Y")');
64+
self::assertSame('#VALUE!', $sheet->getCell('F1')->getCalculatedValue(), 'row does not match range');
6265
}
6366

6467
public function testConvertCellRangeEdgeCases(): void

tests/PhpSpreadsheetTests/Calculation/InternalFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testAnchorArrayFormula(string $reference, string $range, array $
3333
$attributes1 = $sheet1->getCell('A8')->getFormulaAttributes();
3434
self::assertSame(['t' => 'array', 'ref' => $range], $attributes1);
3535
$result = ExcelArrayPseudoFunctions::anchorArray($reference, $sheet1->getCell('A10'));
36-
self::assertSame($expectedResult, $result, 'direct call agrees with evaluation on spredsheet');
36+
self::assertSame($expectedResult, $result, 'direct call agrees with evaluation on spreadsheet');
3737
$spreadsheet->disconnectWorksheets();
3838
}
3939

0 commit comments

Comments
 (0)