open_xlsx_get_sheet_not_found_data.phpt 576 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Check for vtiful presence
  3. --SKIPIF--
  4. <?php
  5. require __DIR__ . '/include/skipif.inc';
  6. skip_disable_reader();
  7. ?>
  8. --FILE--
  9. <?php
  10. $config = ['path' => './tests'];
  11. $excel = new \Vtiful\Kernel\Excel($config);
  12. $filePath = $excel->fileName('open_xlsx_get_sheet_not_found_data.xlsx')
  13. ->header(['Item', 'Cost'])
  14. ->output();
  15. $data = $excel->openFile('open_xlsx_get_sheet_not_found_data.xlsx')
  16. ->openSheet('not_found')->getSheetData();
  17. var_dump($data);
  18. ?>
  19. --CLEAN--
  20. <?php
  21. @unlink(__DIR__ . '/open_xlsx_get_sheet_not_found_data.xlsx');
  22. ?>
  23. --EXPECT--
  24. array(0) {
  25. }