@@ -252,7 +252,7 @@ public function testPlaceholderPresentOnNonRequiredExpandedSingleChoice()
252252 'choices_as_values ' => true ,
253253 ));
254254
255- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) );
255+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form );
256256 $ this ->assertCount (count ($ this ->choices ) + 1 , $ form , 'Each choice should become a new field ' );
257257 }
258258
@@ -266,7 +266,7 @@ public function testPlaceholderNotPresentIfRequired()
266266 'choices_as_values ' => true ,
267267 ));
268268
269- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
269+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
270270 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
271271 }
272272
@@ -280,7 +280,7 @@ public function testPlaceholderNotPresentIfMultiple()
280280 'choices_as_values ' => true ,
281281 ));
282282
283- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
283+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
284284 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
285285 }
286286
@@ -297,7 +297,7 @@ public function testPlaceholderNotPresentIfEmptyChoice()
297297 'choices_as_values ' => true ,
298298 ));
299299
300- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
300+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
301301 $ this ->assertCount (2 , $ form , 'Each choice should become a new field ' );
302302 }
303303
@@ -357,7 +357,7 @@ public function testPlaceholderWithExpandedBooleanChoices()
357357 'choices_as_values ' => true ,
358358 ));
359359
360- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
360+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
361361 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
362362
363363 $ view = $ form ->createView ();
@@ -382,7 +382,7 @@ public function testPlaceholderWithExpandedBooleanChoicesAndWithFalseAsPreSetDat
382382 'choices_as_values ' => true ,
383383 ));
384384
385- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
385+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
386386 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
387387
388388 $ view = $ form ->createView ();
0 commit comments