mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-05-28 08:28:40 +00:00
test fixes
This commit is contained in:
parent
5ca0edcd24
commit
917be6cdfd
|
|
@ -31,6 +31,9 @@ $word = new DefaultWord();
|
||||||
$section = $word->createFirstPage();
|
$section = $word->createFirstPage();
|
||||||
|
|
||||||
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
|
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
|
||||||
|
if ($file === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
||||||
$writer->save($file);
|
$writer->save($file);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user