@@ -243,7 +243,7 @@ public function testPlaceholderPresentOnNonRequiredExpandedSingleChoice()
243243 'choices_as_values ' => true ,
244244 ));
245245
246- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) );
246+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form );
247247 $ this ->assertCount (count ($ this ->choices ) + 1 , $ form , 'Each choice should become a new field ' );
248248 }
249249
@@ -257,7 +257,7 @@ public function testPlaceholderNotPresentIfRequired()
257257 'choices_as_values ' => true ,
258258 ));
259259
260- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
260+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
261261 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
262262 }
263263
@@ -271,7 +271,7 @@ public function testPlaceholderNotPresentIfMultiple()
271271 'choices_as_values ' => true ,
272272 ));
273273
274- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
274+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
275275 $ this ->assertCount (count ($ this ->choices ), $ form , 'Each choice should become a new field ' );
276276 }
277277
@@ -288,7 +288,7 @@ public function testPlaceholderNotPresentIfEmptyChoice()
288288 'choices_as_values ' => true ,
289289 ));
290290
291- $ this ->assertFalse ( isset ( $ form [ 'placeholder ' ]) );
291+ $ this ->assertArrayNotHasKey ( 'placeholder ' , $ form );
292292 $ this ->assertCount (2 , $ form , 'Each choice should become a new field ' );
293293 }
294294
@@ -348,7 +348,7 @@ public function testPlaceholderWithExpandedBooleanChoices()
348348 'choices_as_values ' => true ,
349349 ));
350350
351- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
351+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
352352 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
353353
354354 $ view = $ form ->createView ();
@@ -373,7 +373,7 @@ public function testPlaceholderWithExpandedBooleanChoicesAndWithFalseAsPreSetDat
373373 'choices_as_values ' => true ,
374374 ));
375375
376- $ this ->assertTrue ( isset ( $ form [ 'placeholder ' ]) , 'Placeholder should be set ' );
376+ $ this ->assertArrayHasKey ( 'placeholder ' , $ form , 'Placeholder should be set ' );
377377 $ this ->assertCount (3 , $ form , 'Each choice should become a new field, placeholder included ' );
378378
379379 $ view = $ form ->createView ();
0 commit comments