php-ext-xlswriter/tests/image_no_styles.phpt

30 lines
601 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('image_no_styles.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->insertImage(3, 0, __DIR__ . '/../resource/pecl.png')
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/image_no_styles.xlsx');
?>
--EXPECT--
string(28) "./tests/image_no_styles.xlsx"