load($xlsxFile); $sheet = $spreadsheet->getActiveSheet(); self::assertEquals(2.1, $sheet->getCell('A1')->getCalculatedValue()); self::assertEquals('#REF!', $sheet->getCell('A2')->getCalculatedValue()); self::assertEquals('#REF!', $sheet->getCell('A3')->getCalculatedValue()); self::assertEquals('#NAME?', $sheet->getCell('A4')->getCalculatedValue()); self::assertEquals('#REF!', $sheet->getCell('A5')->getCalculatedValue()); } }