12345678910111213141516171819202122 |
- --TEST--
- Check for vtiful presence
- --SKIPIF--
- <?php if (!extension_loaded("xlswriter")) print "skip"; ?>
- --FILE--
- <?php
- $config = ['path' => './tests'];
- $excel = new \Vtiful\Kernel\Excel($config);
- $filePath = $excel->fileName('insert_comment.xlsx')
- ->header(['Item', 'Cost'])
- ->insertComment(0,1,'comment')
- ->output();
- var_dump($filePath);
- ?>
- --CLEAN--
- <?php
- @unlink(__DIR__ . '/insert_comment.xlsx');
- ?>
- --EXPECT--
- string(27) "./tests/insert_comment.xlsx"
|