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 @@ -204,7 +204,7 @@ public function testAddXmlContentWithErrors()
204
204
EOF
205
205
, 'UTF-8 ' );
206
206
207
- $ this ->assertTrue ( count ( libxml_get_errors ()) > 1 );
207
+ $ this ->assertGreaterThan ( 1 , libxml_get_errors ());
208
208
209
209
libxml_clear_errors ();
210
210
libxml_use_internal_errors ($ internalErrors );
Original file line number Diff line number Diff line change @@ -376,15 +376,15 @@ public function testOffsetUnset()
376
376
{
377
377
$ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
378
378
unset($ form ['foo ' ]);
379
- $ this ->assertFalse ( isset ( $ form [ 'foo ' ]) , '->offsetUnset() removes a field ' );
379
+ $ this ->assertArrayNotHasKey ( 'foo ' , $ form , '->offsetUnset() removes a field ' );
380
380
}
381
381
382
382
public function testOffsetExists ()
383
383
{
384
384
$ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
385
385
386
- $ this ->assertTrue ( isset ( $ form [ 'foo ' ]) , '->offsetExists() return true if the field exists ' );
387
- $ this ->assertFalse ( isset ( $ form [ 'bar ' ]) , '->offsetExists() return false if the field does not exist ' );
386
+ $ this ->assertArrayHasKey ( 'foo ' , $ form , '->offsetExists() return true if the field exists ' );
387
+ $ this ->assertArrayNotHasKey ( 'bar ' , $ form , '->offsetExists() return false if the field does not exist ' );
388
388
}
389
389
390
390
public function testGetValues ()
You can’t perform that action at this time.
0 commit comments