File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,15 @@ public function testGetRowsCenterAligned() : void
96
96
],
97
97
$ item ->getRows ($ menuStyle )
98
98
);
99
+
100
+ $ item = new AsciiArtItem (" // \n////////// " , AsciiArtItem::POSITION_CENTER );
101
+ $ this ->assertEquals (
102
+ [
103
+ " // " ,
104
+ "////////// " ,
105
+ ],
106
+ $ item ->getRows ($ menuStyle )
107
+ );
99
108
}
100
109
101
110
public function testGetRowsCenterAlignedWithOddWidth () : void
@@ -115,6 +124,15 @@ public function testGetRowsCenterAlignedWithOddWidth() : void
115
124
],
116
125
$ item ->getRows ($ menuStyle )
117
126
);
127
+
128
+ $ item = new AsciiArtItem (" // \n////////// " , AsciiArtItem::POSITION_CENTER );
129
+ $ this ->assertEquals (
130
+ [
131
+ " // " ,
132
+ " ////////// " ,
133
+ ],
134
+ $ item ->getRows ($ menuStyle )
135
+ );
118
136
}
119
137
120
138
public function testHideAndShowItemExtraHasNoEffect () : void
You can’t perform that action at this time.
0 commit comments