open_xlsx_get_sheet_not_found_data.phpt 493 B

1234567891011121314151617181920212223242526
  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('tutorial.xlsx')
  13. ->header(['Item', 'Cost'])
  14. ->output();
  15. $data = $excel->openFile('tutorial.xlsx')->openSheet('not_found')->getSheetData();
  16. var_dump($data);
  17. ?>
  18. --CLEAN--
  19. <?php
  20. @unlink(__DIR__ . '/tutorial.xlsx');
  21. ?>
  22. --EXPECT--
  23. array(0) {
  24. }