123456789101112131415161718192021222324 |
- --TEST--
- Check for vtiful presence
- --SKIPIF--
- <?php if (!extension_loaded("xlswriter")) print "skip"; ?>
- --FILE--
- <?php
- $config = ['path' => './tests'];
- $excel = new \Vtiful\Kernel\Excel($config);
- $fileFd = $excel->fileName('tutorial01.xlsx');
- $setHeader = $fileFd->header(['Item', 'Cost']);
- var_dump($setHeader);
- ?>
- --EXPECT--
- object(Vtiful\Kernel\Excel)#1 (3) {
- ["config":"Vtiful\Kernel\Excel":private]=>
- array(1) {
- ["path"]=>
- string(7) "./tests"
- }
- ["fileName":"Vtiful\Kernel\Excel":private]=>
- string(23) "./tests/tutorial01.xlsx"
- ["read_row_type":"Vtiful\Kernel\Excel":private]=>
- NULL
- }
|