php-ext-xlswriter/tests/open_xlsx_sheet_list.phpt

30 lines
603 B
Plaintext
Raw Permalink Normal View History

2024-03-05 10:01:08 +08:00
--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_list.xlsx', 'TestSheet1')
->header(['Item', 'Cost'])
->output();
$sheetList = $excel->openFile('open_xlsx_sheet_list.xlsx')->sheetList();
var_dump(is_array($sheetList));
var_dump($sheetList);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/open_xlsx_sheet_list.xlsx');
?>
--EXPECT--
bool(true)
array(1) {
[0]=>
string(10) "TestSheet1"
}