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 @@ -180,7 +180,7 @@ public function testAddXmlContentWithErrors()
180
180
EOF
181
181
, 'UTF-8 ' );
182
182
183
- $ this ->assertTrue ( count ( libxml_get_errors ()) > 1 );
183
+ $ this ->assertGreaterThan ( 1 , libxml_get_errors ());
184
184
185
185
libxml_clear_errors ();
186
186
libxml_use_internal_errors ($ internalErrors );
Original file line number Diff line number Diff line change @@ -370,15 +370,15 @@ public function testOffsetUnset()
370
370
{
371
371
$ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
372
372
unset($ form ['foo ' ]);
373
- $ this ->assertFalse ( isset ( $ form [ 'foo ' ]) , '->offsetUnset() removes a field ' );
373
+ $ this ->assertArrayNotHasKey ( 'foo ' , $ form , '->offsetUnset() removes a field ' );
374
374
}
375
375
376
376
public function testOffsetExists ()
377
377
{
378
378
$ form = $ this ->createForm ('<form><input type="text" name="foo" value="foo" /><input type="submit" /></form> ' );
379
379
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 ' );
382
382
}
383
383
384
384
public function testGetValues ()
You can’t perform that action at this time.
0 commit comments