open_xlsx_file_not_found.phpt 471 B

123456789101112131415161718192021222324
  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. try {
  11. $config = ['path' => './tests'];
  12. $excel = new \Vtiful\Kernel\Excel($config);
  13. $excel->openFile('tutorial_not_found.xlsx');
  14. } catch (Vtiful\Kernel\Exception $exception) {
  15. var_dump($exception->getMessage());
  16. }
  17. ?>
  18. --CLEAN--
  19. <?php
  20. //
  21. ?>
  22. --EXPECT--
  23. string(57) "File not found, file path:./tests/tutorial_not_found.xlsx"