1234567891011121314151617181920212223242526272829303132333435 |
- --TEST--
- Check for vtiful presence
- --SKIPIF--
- <?php
- require __DIR__ . '/include/skipif.inc';
- skip_disable_reader();
- ?>
- --FILE--
- <?php
- $config = ['path' => './tests'];
- $excel = new \Vtiful\Kernel\Excel($config);
- $filePath = $excel->fileName('open_xlsx_file.xlsx')
- ->header(['Item', 'Cost'])
- ->output();
- $data = $excel->openFile('open_xlsx_file.xlsx');
- var_dump($data);
- ?>
- --CLEAN--
- <?php
- @unlink(__DIR__ . '/open_xlsx_file.xlsx');
- ?>
- --EXPECT--
- object(Vtiful\Kernel\Excel)#1 (3) {
- ["config":"Vtiful\Kernel\Excel":private]=>
- array(1) {
- ["path"]=>
- string(7) "./tests"
- }
- ["fileName":"Vtiful\Kernel\Excel":private]=>
- string(27) "./tests/open_xlsx_file.xlsx"
- ["read_row_type":"Vtiful\Kernel\Excel":private]=>
- NULL
- }
|