35 lines
763 B
Plaintext
35 lines
763 B
Plaintext
|
--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_sheet.xlsx')
|
||
|
->header(['Item', 'Cost'])
|
||
|
->output();
|
||
|
|
||
|
$data = $excel->openFile('open_xlsx_sheet.xlsx')->openSheet();
|
||
|
|
||
|
var_dump($data);
|
||
|
?>
|
||
|
--CLEAN--
|
||
|
<?php
|
||
|
@unlink(__DIR__ . '/open_xlsx_sheet.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(28) "./tests/open_xlsx_sheet.xlsx"
|
||
|
["read_row_type":"Vtiful\Kernel\Excel":private]=>
|
||
|
NULL
|
||
|
}
|