diff --git a/src/TestsExcelDocuments.php b/src/TestsExcelDocuments.php index e1a2cd2..115d4dd 100644 --- a/src/TestsExcelDocuments.php +++ b/src/TestsExcelDocuments.php @@ -2,6 +2,7 @@ namespace Zoomyboy\TableDocument; +use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Writer\Csv; use PHPUnit\Framework\Assert; @@ -12,7 +13,7 @@ trait TestsExcelDocuments { $filename = sys_get_temp_dir() . '/' . str()->uuid()->toString(); file_put_contents($filename, $content); - $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename); + $spreadsheet = IOFactory::load($filename); $writer = new Csv($spreadsheet); $writer->save($filename); $spreadsheet->disconnectWorksheets();