@@ -104,7 +104,7 @@ public function test_length()
104
104
105
105
$ tf = new TableFormatter ();
106
106
$ tf ->setBorder ('| ' );
107
- $ result = $ tf ->format ([ 20 , '* ' ], [ $ text , 'test ' ] );
107
+ $ result = $ tf ->format (array ( 20 , '* ' ), array ( $ text , 'test ' ) );
108
108
109
109
$ this ->assertEquals ($ expect , trim ($ result ));
110
110
}
@@ -118,7 +118,7 @@ public function test_colorlength()
118
118
119
119
$ tf = new TableFormatter ();
120
120
$ tf ->setBorder ('| ' );
121
- $ result = $ tf ->format ([ 20 , '* ' ], [ $ text , 'test ' ] );
121
+ $ result = $ tf ->format (array ( 20 , '* ' ), array ( $ text , 'test ' ) );
122
122
123
123
$ this ->assertEquals ($ expect , trim ($ result ));
124
124
}
@@ -135,7 +135,7 @@ public function test_onewrap()
135
135
$ tf ->setMaxWidth (11 );
136
136
$ tf ->setBorder ('| ' );
137
137
138
- $ result = $ tf ->format ([ 5 , '* ' ], [ $ col1 , $ col2] );
138
+ $ result = $ tf ->format (array ( 5 , '* ' ), array ( $ col1 , $ col2) );
139
139
$ this ->assertEquals ($ expect , $ result );
140
140
}
141
141
@@ -149,7 +149,7 @@ public function test_colorwrap($text, $expect)
149
149
$ tf = new TableFormatter ();
150
150
$ tf ->setMaxWidth (15 );
151
151
152
- $ this ->assertEquals ($ expect , $ tf ->format ([ '* ' ], [ $ text] ));
152
+ $ this ->assertEquals ($ expect , $ tf ->format (array ( '* ' ), array ( $ text) ));
153
153
}
154
154
155
155
/**
@@ -166,23 +166,23 @@ public function colorwrapProvider()
166
166
return $ color ->wrap ($ str , Colors::C_CYAN );
167
167
};
168
168
169
- return [
170
- 'color word line 1 ' => [
169
+ return array (
170
+ 'color word line 1 ' => array (
171
171
"This is " . $ wrap ("cyan " ) . " text wrapping " ,
172
172
"This is {$ cyan }cyan {$ reset } \ntext wrapping \n" ,
173
- ] ,
174
- 'color word line 2 ' => [
173
+ ) ,
174
+ 'color word line 2 ' => array (
175
175
"This is text " . $ wrap ("cyan " ) . " wrapping " ,
176
176
"This is text \n{$ cyan }cyan {$ reset } wrapping \n" ,
177
- ] ,
178
- 'color across lines ' => [
179
- "This is " . $ wrap ("cyan text " , ) . " wrapping " ,
177
+ ) ,
178
+ 'color across lines ' => array (
179
+ "This is " . $ wrap ("cyan text " ) . " wrapping " ,
180
180
"This is {$ cyan }cyan \ntext {$ reset } wrapping \n" ,
181
- ] ,
182
- 'color across lines until end ' => [
181
+ ) ,
182
+ 'color across lines until end ' => array (
183
183
"This is " . $ wrap ("cyan text wrapping " ),
184
184
"This is {$ cyan }cyan \n{$ cyan }text wrapping {$ reset } \n" ,
185
- ] ,
186
- ] ;
185
+ ) ,
186
+ ) ;
187
187
}
188
188
}
0 commit comments