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);
- $fileFd = $excel->fileName('tutorial01.xlsx');
- $setHeader = $fileFd->header(['Item', 'Cost']);
- var_dump($setHeader);
- ?>
- --EXPECT--
- object(Vtiful\Kernel\Excel)#1 (2) {
- ["config":"Vtiful\Kernel\Excel":private]=>
- array(1) {
- ["path"]=>
- string(7) "./tests"
- }
- ["fileName":"Vtiful\Kernel\Excel":private]=>
- string(23) "./tests/tutorial01.xlsx"
- }
|