php-ext-xlswriter/tests/paper.phpt

31 lines
580 B
PHP

--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('paper.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->setPaper(\Vtiful\Kernel\Excel::PAPER_A3)
->setLandscape()
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/paper.xlsx');
?>
--EXPECT--
string(18) "./tests/paper.xlsx"