mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-13 11:08:42 +00:00
fix tests
This commit is contained in:
parent
634845fb9a
commit
02ad92d4eb
|
|
@ -57,6 +57,7 @@ if ($file === false) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
||||||
$writer->save($file);
|
$writer->save($file);
|
||||||
|
|
||||||
echo \file_get_contents($file);
|
echo \file_get_contents($file);
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ $word = new DefaultWord();
|
||||||
$section = $word->createFirstPage();
|
$section = $word->createFirstPage();
|
||||||
|
|
||||||
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
|
$file = \tempnam(\sys_get_temp_dir(), 'oms_');
|
||||||
|
|
||||||
|
$writer = \PhpOffice\PhpWord\IOFactory::createWriter($word, 'Word2007');
|
||||||
$writer->save($file);
|
$writer->save($file);
|
||||||
|
|
||||||
if ($file !== false) {
|
if ($file !== false) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user