File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
tests/PhpSpreadsheetTests/Style Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,17 @@ public function testHorizontal(): void
84
84
self ::assertEquals (0 , $ cell3 ->getStyle ()->getAlignment ()->getIndent ());
85
85
}
86
86
87
+ public function testJustifyLastLine (): void
88
+ {
89
+ $ this ->spreadsheet = new Spreadsheet ();
90
+ $ sheet = $ this ->spreadsheet ->getActiveSheet ();
91
+ $ cell1 = $ sheet ->getCell ('A1 ' );
92
+ $ cell1 ->setValue ('ABC ' );
93
+ $ cell1 ->getStyle ()->getAlignment ()->setHorizontal (Alignment::HORIZONTAL_DISTRIBUTED );
94
+ $ cell1 ->getStyle ()->getAlignment ()->setJustifyLastLine (true );
95
+ self ::assertTrue ($ cell1 ->getStyle ()->getAlignment ()->getJustifyLastLine ());
96
+ }
97
+
87
98
public function testReadOrder (): void
88
99
{
89
100
$ this ->spreadsheet = new Spreadsheet ();
You can’t perform that action at this time.
0 commit comments