File tree 1 file changed +21
-0
lines changed
tests/PhpWordTests/Reader/Word2007
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,27 @@ public function testReadHidden(): void
190
190
self ::assertTrue ($ fontStyle ->isHidden ());
191
191
}
192
192
193
+ public function testReadTableCellNoWrap (): void
194
+ {
195
+ $ documentXml = '<w:tbl>
196
+ <w:tr>
197
+ <w:tc>
198
+ <w:tcPr>
199
+ <w:noWrap />
200
+ </w:tcPr>
201
+ </w:tc>
202
+ </w:tr>
203
+ </w:tbl> ' ;
204
+
205
+ $ phpWord = $ this ->getDocumentFromString (['document ' => $ documentXml ]);
206
+
207
+ $ elements = $ phpWord ->getSection (0 )->getElements ();
208
+ self ::assertInstanceOf ('PhpOffice\PhpWord\Element\Table ' , $ elements [0 ]);
209
+ $ rows = $ elements [0 ]->getRows ();
210
+ $ cells = $ rows [0 ]->getCells ();
211
+ self ::assertTrue ($ cells [0 ]->getStyle ()->getNoWrap ());
212
+ }
213
+
193
214
public function testReadHeading (): void
194
215
{
195
216
Style::resetStyles ();
You can’t perform that action at this time.
0 commit comments