File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public function testAddXmlContentWithErrors()
172172EOF
173173 , 'UTF-8 ' );
174174
175- $ this ->assertTrue ( count ( libxml_get_errors ()) > 1 );
175+ $ this ->assertGreaterThan ( 1 , libxml_get_errors ());
176176
177177 libxml_clear_errors ();
178178 libxml_use_internal_errors ($ internalErrors );
Original file line number Diff line number Diff line change @@ -370,15 +370,15 @@ public function testOffsetUnset()
370370 {
371371 $ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
372372 unset($ form ['foo ' ]);
373- $ this ->assertFalse ( isset ( $ form [ 'foo ' ]) , '->offsetUnset() removes a field ' );
373+ $ this ->assertArrayNotHasKey ( 'foo ' , $ form , '->offsetUnset() removes a field ' );
374374 }
375375
376376 public function testOffsetExists ()
377377 {
378378 $ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
379379
380- $ this ->assertTrue ( isset ( $ form [ 'foo ' ]) , '->offsetExists() return true if the field exists ' );
381- $ this ->assertFalse ( isset ( $ form [ 'bar ' ]) , '->offsetExists() return false if the field does not exist ' );
380+ $ this ->assertArrayHasKey ( 'foo ' , $ form , '->offsetExists() return true if the field exists ' );
381+ $ this ->assertArrayNotHasKey ( 'bar ' , $ form , '->offsetExists() return false if the field does not exist ' );
382382 }
383383
384384 public function testGetValues ()
You can’t perform that action at this time.
0 commit comments