php-ext-xlswriter/tests/insert_date_default_format....

26 lines
534 B
PHP

--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_default_format.xlsx');
$filePath = $fileObject->header(['date'])
->insertDate(1, 0, time())
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/insert_date_default_format.xlsx');
?>
--EXPECT--
string(39) "./tests/insert_date_default_format.xlsx"