php-ext-xlswriter/tests/insert_date_custom_format.phpt

26 lines
557 B
Plaintext
Raw Permalink Normal View History

2024-03-05 10:01:08 +08:00
--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_custom_format.xlsx');
$filePath = $fileObject->header(['date'])
->insertDate(1, 0, time(), 'mmm d yyyy hh:mm AM/PM')
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/insert_date_custom_format.xlsx');
?>
--EXPECT--
string(38) "./tests/insert_date_custom_format.xlsx"