@@ -170,25 +170,28 @@ public function testMultiValuedFields()
170
170
' );
171
171
172
172
$ this ->assertEquals (
173
- array_keys ( $ form -> all ()) ,
174
- [ ' foo[2] ' , ' foo[3] ' , ' bar[foo][0] ' , ' bar[foo][foobar] ' ]
173
+ [ ' foo[2] ' , ' foo[3] ' , ' bar[foo][0] ' , ' bar[foo][foobar] ' ] ,
174
+ array_keys ( $ form -> all ())
175
175
);
176
176
177
- $ this ->assertEquals ($ form ->get ('foo[2] ' )->getValue (), ' foo ' );
178
- $ this ->assertEquals ($ form ->get ('foo[3] ' )->getValue (), ' foo ' );
179
- $ this ->assertEquals ($ form ->get ('bar[foo][0] ' )->getValue (), ' foo ' );
180
- $ this ->assertEquals ($ form ->get ('bar[foo][foobar] ' )->getValue (), ' foo ' );
177
+ $ this ->assertEquals (' foo ' , $ form ->get ('foo[2] ' )->getValue ());
178
+ $ this ->assertEquals (' foo ' , $ form ->get ('foo[3] ' )->getValue ());
179
+ $ this ->assertEquals (' foo ' , $ form ->get ('bar[foo][0] ' )->getValue ());
180
+ $ this ->assertEquals (' foo ' , $ form ->get ('bar[foo][foobar] ' )->getValue ());
181
181
182
182
$ form ['foo[2] ' ] = 'bar ' ;
183
183
$ form ['foo[3] ' ] = 'bar ' ;
184
184
185
- $ this ->assertEquals ($ form ->get ('foo[2] ' )->getValue (), ' bar ' );
186
- $ this ->assertEquals ($ form ->get ('foo[3] ' )->getValue (), ' bar ' );
185
+ $ this ->assertEquals (' bar ' , $ form ->get ('foo[2] ' )->getValue ());
186
+ $ this ->assertEquals (' bar ' , $ form ->get ('foo[3] ' )->getValue ());
187
187
188
188
$ form ['bar ' ] = ['foo ' => ['0 ' => 'bar ' , 'foobar ' => 'foobar ' ]];
189
189
190
- $ this ->assertEquals ($ form ->get ('bar[foo][0] ' )->getValue (), 'bar ' );
191
- $ this ->assertEquals ($ form ->get ('bar[foo][foobar] ' )->getValue (), 'foobar ' );
190
+ $ this ->assertEquals ('bar ' , $ form ->get ('bar[foo][0] ' )->getValue ());
191
+ $ this ->assertEquals (
192
+ 'foobar ' ,
193
+ $ form ->get ('bar[foo][foobar] ' )->getValue ()
194
+ );
192
195
}
193
196
194
197
/**
@@ -979,7 +982,7 @@ public function testGetPhpValuesWithEmptyTextarea()
979
982
980
983
$ nodes = $ dom ->getElementsByTagName ('form ' );
981
984
$ form = new Form ($ nodes ->item (0 ), 'http://example.com ' );
982
- $ this ->assertEquals ($ form -> getPhpValues (), ['example ' => '' ]);
985
+ $ this ->assertEquals (['example ' => '' ], $ form -> getPhpValues () );
983
986
}
984
987
985
988
public function testGetReturnTypes ()
0 commit comments