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
8484 self ::assertEquals (0 , $ cell3 ->getStyle ()->getAlignment ()->getIndent ());
8585 }
8686
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+
8798 public function testReadOrder (): void
8899 {
89100 $ this ->spreadsheet = new Spreadsheet ();
You can’t perform that action at this time.
0 commit comments