getSheet(); $worksheet->fromArray($testData, null, 'A1', true); $worksheet->getCell('H1')->setValue("=ARRAYTOTEXT(A1:C5, {$mode})"); $result = $worksheet->getCell('H1')->getCalculatedValue(); self::assertSame($expectedResult, $result); } public function providerARRAYTOTEXT(): array { return require 'tests/data/Calculation/TextData/ARRAYTOTEXT.php'; } }