mightHaveException($expectedResult); $sheet = $this->getSheet(); $b1Formula = '=TEXTJOIN('; $comma = ''; $row = 0; foreach ($args as $arg) { ++$row; $this->setCell("A$row", $arg); $b1Formula .= $comma . "A$row"; $comma = ','; } $b1Formula .= ')'; $this->setCell('B1', $b1Formula); $result = $sheet->getCell('B1')->getCalculatedValue(); self::assertEquals($expectedResult, $result); } public function providerTEXTJOIN(): array { return require 'tests/data/Calculation/TextData/TEXTJOIN.php'; } }