123456789101112131415161718192021222324252627282930 |
- --TEST--
- Check for vtiful presence
- --SKIPIF--
- <?php if (!extension_loaded("xlswriter")) print "skip"; ?>
- --FILE--
- <?php
- $config = [
- 'path' => './tests'
- ];
- $fileObject = new \Vtiful\Kernel\Excel($config);
- $fileObject = $fileObject->fileName('insert_date_resource_format.xlsx');
- $fileHandle = $fileObject->getHandle();
- $format = new \Vtiful\Kernel\Format($fileHandle);
- $colorStyle = $format->fontColor(\Vtiful\Kernel\Format::COLOR_ORANGE)->toResource();
- $filePath = $fileObject->header(['date'])
- ->insertDate(1, 0, time(), 'mmm d yyyy hh:mm AM/PM', $colorStyle)
- ->output();
- var_dump($filePath);
- ?>
- --CLEAN--
- <?php
- @unlink(__DIR__ . '/insert_date_resource_format.xlsx');
- ?>
- --EXPECT--
- string(40) "./tests/insert_date_resource_format.xlsx"
|