@@ -196,7 +196,7 @@ public function testPlaceholderPresentOnNonRequiredExpandedSingleChoice()
196196 'choices ' => $ this ->choices ,
197197 ));
198198
199- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) );
199+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form );
200200 $ this ->assertCount (count ($ this ->choices ) + 1 , $ form , 'Each choice should become a new field ' );
201201 }
202202
@@ -209,7 +209,7 @@ public function testPlaceholderNotPresentIfRequired()
209209 'choices ' => $ this ->choices ,
210210 ));
211211
212- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
212+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
213213 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
214214 }
215215
@@ -222,7 +222,7 @@ public function testPlaceholderNotPresentIfMultiple()
222222 'choices ' => $ this ->choices ,
223223 ));
224224
225- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
225+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
226226 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
227227 }
228228
@@ -238,7 +238,7 @@ public function testPlaceholderNotPresentIfEmptyChoice()
238238 ),
239239 ));
240240
241- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
241+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
242242 $ this ->assertCount (2 , $ form , 'Each choice should become a new field ' );
243243 }
244244
@@ -295,7 +295,7 @@ public function testPlaceholderWithExpandedBooleanChoices()
295295 'placeholder ' => 'Select an option ' ,
296296 ));
297297
298- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
298+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
299299 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
300300
301301 $ view = $ form ->createView ();
@@ -319,7 +319,7 @@ public function testPlaceholderWithExpandedBooleanChoicesAndWithFalseAsPreSetDat
319319 'placeholder ' => 'Select an option ' ,
320320 ));
321321
322- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
322+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
323323 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
324324
325325 $ view = $ form ->createView ();
0 commit comments