Skip to content

Commit cb97979

Browse files
committed
Merge pull request #226 from basjan/image-test-unit
Thanks @basjan.
2 parents 704cc2f + 15c3896 commit cb97979

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/PhpWord/Tests/Style/ImageTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ public function testSetStyleValue()
6262
'height' => 200,
6363
'align' => 'left',
6464
'marginTop' => 240,
65-
'marginLeft' => 240
65+
'marginLeft' => 240,
66+
'positioning' => \PhpOffice\PhpWord\Style\Image::POSITION_ABSOLUTE,
67+
'posHorizontal' => \PhpOffice\PhpWord\Style\Image::POSITION_HORIZONTAL_CENTER,
68+
'posVertical' => \PhpOffice\PhpWord\Style\Image::POSITION_VERTICAL_TOP,
69+
'posHorizontalRel' => \PhpOffice\PhpWord\Style\Image::POSITION_RELATIVE_TO_COLUMN,
70+
'posVerticalRel' => \PhpOffice\PhpWord\Style\Image::POSITION_RELATIVE_TO_IMARGIN
6671
);
6772
foreach ($properties as $key => $value) {
6873
$get = "get{$key}";

0 commit comments

Comments
 (0)