fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 02:17:50 +00:00
parent 634845fb9a
commit 02ad92d4eb
2 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ if ($file === false) {
return '';
}
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
$writer->save($file);
echo \file_get_contents($file);

View File

@ -31,6 +31,8 @@ $word = new DefaultWord();
$section = $word->createFirstPage();
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
$writer->save($file);
if ($file !== false) {