005.phpt 401 B

12345678910111213141516171819
  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('005.xlsx')
  10. ->header(['Item', 'Cost'])
  11. ->output();
  12. var_dump($filePath);
  13. ?>
  14. --CLEAN--
  15. <?php
  16. @unlink(__DIR__ . '/005.xlsx');
  17. ?>
  18. --EXPECT--
  19. string(16) "./tests/005.xlsx"