php-ext-xlswriter/tests/image_width_height_styles.phpt

30 lines
639 B
Plaintext
Raw Normal View History

2024-03-05 10:01:08 +08:00
--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_width_height_styles.xlsx');
$filePath = $fileObject->header(['name', 'age'])
->data([
['viest', 21],
['wjx', 21]
])
->insertImage(3, 0, __DIR__ . '/../resource/pecl.png', 10, 20)
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/image_width_height_styles.xlsx');
?>
--EXPECT--
string(38) "./tests/image_width_height_styles.xlsx"