diff --git a/src/TestsExcelDocuments.php b/src/TestsExcelDocuments.php new file mode 100644 index 0000000..e1a2cd2 --- /dev/null +++ b/src/TestsExcelDocuments.php @@ -0,0 +1,23 @@ +uuid()->toString(); + file_put_contents($filename, $content); + $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename); + $writer = new Csv($spreadsheet); + $writer->save($filename); + $spreadsheet->disconnectWorksheets(); + $contents = file_get_contents($filename); + unlink($filename); + Assert::assertStringContainsString($should, $contents); + } +}