File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,10 @@ public function testCell(): void
9191 {
9292 $ oTable = new Table ();
9393 $ oTable ->addRow ();
94- $ element = $ oTable ->addCell (1234 );
94+ $ element = $ oTable ->addCell ();
9595 self ::assertInstanceOf ('PhpOffice \\PhpWord \\Element \\Cell ' , $ element );
96- self ::assertSame (1234 , $ element ->getWidth ());
96+ $ element ->getStyle ()->setWidth (1236 );
97+ self ::assertSame (1236 , $ element ->getStyle ()->getWidth ());
9798 }
9899
99100 /**
Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ public function testZoom(): void
129129 $ phpWordWriter = new PhpWord ();
130130 $ zoomLevel = 75 ;
131131 $ phpWordWriter ->getSettings ()->setZoom ($ zoomLevel );
132+ $ phpWordWriter ->getSettings ()->setConsecutiveHyphenLimit (3 );
133+ $ phpWordWriter ->getSettings ()->setAutoHyphenation (true );
132134
133135 $ writer = new Word2007 ($ phpWordWriter );
134136 $ file = __DIR__ . '/../_files/temp.docx ' ;
@@ -139,6 +141,8 @@ public function testZoom(): void
139141 $ phpWordReader = IOFactory::load ($ file , 'Word2007 ' );
140142
141143 self ::assertEquals ($ zoomLevel , $ phpWordReader ->getSettings ()->getZoom ());
144+ self ::assertSame (3 , $ phpWordReader ->getSettings ()->getConsecutiveHyphenLimit ());
145+ self ::assertTrue ($ phpWordReader ->getSettings ()->hasAutoHyphenation ());
142146
143147 unlink ($ file );
144148 }
You can’t perform that action at this time.
0 commit comments