open_xlsx_get_sheet_not_found_data.phpt 479 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Check for vtiful presence
  3. --SKIPIF--
  4. <?php if (!extension_loaded("xlswriter")) print "skip"; ?>
  5. --FILE--
  6. <?php
  7. $config = ['path' => './tests'];
  8. $excel = new \Vtiful\Kernel\Excel($config);
  9. $filePath = $excel->fileName('tutorial.xlsx')
  10. ->header(['Item', 'Cost'])
  11. ->output();
  12. $data = $excel->openFile('tutorial.xlsx')->openSheet('not_found')->getSheetData();
  13. var_dump($data);
  14. ?>
  15. --CLEAN--
  16. <?php
  17. @unlink(__DIR__ . '/tutorial.xlsx');
  18. ?>
  19. --EXPECT--
  20. array(0) {
  21. }