Skip to content

Commit 15c3896

Browse files
author
Bas-Jan 't Jong
committed
Improved Test Unit for Image Style in line with additions of #217
1 parent ce85cc5 commit 15c3896

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

tests/PhpWord/Tests/Style/ImageTest.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
<?php
22
/**
3-
* PHPWord
3+
* This file is part of PHPWord - A pure PHP library for reading and writing
4+
* word processing documents.
5+
*
6+
* PHPWord is free software distributed under the terms of the GNU Lesser
7+
* General Public License version 3 as published by the Free Software Foundation.
8+
*
9+
* For the full copyright and license information, please read the LICENSE
10+
* file that was distributed with this source code. For the full list of
11+
* contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
412
*
513
* @link https://github.com/PHPOffice/PHPWord
6-
* @copyright 2014 PHPWord
14+
* @copyright 2010-2014 PHPWord contributors
715
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
816
*/
917

@@ -54,7 +62,12 @@ public function testSetStyleValue()
5462
'height' => 200,
5563
'align' => 'left',
5664
'marginTop' => 240,
57-
'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
5871
);
5972
foreach ($properties as $key => $value) {
6073
$get = "get{$key}";

0 commit comments

Comments
 (0)