php-ext-xlswriter/tests/016.phpt

23 lines
489 B
PHP

--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$filePath = $excel->fileName("16.xlsx")
->mergeCells('A1:C1', 'Merge cells')
->mergeCells('A2:C2', 'Merge cells, explicit null (default) format', null)
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/16.xlsx');
?>
--EXPECT--
string(15) "./tests/16.xlsx"