XlsxRootZipFilesTest.php 636 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheetTests\Reader\Xlsx;
  3. use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
  4. use PHPUnit\Framework\TestCase;
  5. class XlsxRootZipFilesTest extends TestCase
  6. {
  7. /**
  8. * @var string
  9. */
  10. private static $testbook = 'tests/data/Reader/XLSX/rootZipFiles.xlsx';
  11. public function testXlsxRootZipFiles(): void
  12. {
  13. $filename = self::$testbook;
  14. $reader = new Xlsx();
  15. $spreadsheet = $reader->load($filename);
  16. $sheet = $spreadsheet->getActiveSheet();
  17. $value = $sheet->getCell('A1')->getValue();
  18. self::assertSame('TEST CELL', $value->getPlainText());
  19. }
  20. }