12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- --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('fix-243.xlsx')
- ->header(['NumberToString', 'Number'])
- ->data([
- ['01234567', '01234567']
- ])
- ->output();
- $data = $excel->openFile('fix-243.xlsx')
- ->openSheet()
- ->setType([
- \Vtiful\Kernel\Excel::TYPE_STRING,
- ])
- ->getSheetData();
- var_dump($data);
- ?>
- --CLEAN--
- <?php
- @unlink(__DIR__ . '/fix-243.xlsx');
- ?>
- --EXPECT--
- array(2) {
- [0]=>
- array(2) {
- [0]=>
- string(14) "NumberToString"
- [1]=>
- string(6) "Number"
- }
- [1]=>
- array(2) {
- [0]=>
- string(8) "01234567"
- [1]=>
- int(1234567)
- }
- }
|