mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-24 11:18:41 +00:00
fix tests
This commit is contained in:
parent
634845fb9a
commit
02ad92d4eb
|
|
@ -57,6 +57,7 @@ if ($file === false) {
|
|||
return '';
|
||||
}
|
||||
|
||||
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
||||
$writer->save($file);
|
||||
|
||||
echo \file_get_contents($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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user