insert_comment.phpt 454 B

12345678910111213141516171819202122
  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. ->insertComment(0,1,'comment')
  12. ->output();
  13. var_dump($filePath);
  14. ?>
  15. --CLEAN--
  16. <?php
  17. @unlink(__DIR__ . '/tutorial.xlsx');
  18. ?>
  19. --EXPECT--
  20. string(21) "./tests/tutorial.xlsx"