Skip to content

Commit

Permalink
fix issue with php8
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 21, 2021
1 parent ed92a4a commit 4f133e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/base/BaseIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public function testArrayAccces()
$object['new'] = 'yes';
$this->assertSame('yes', $object['new']);
$this->assertTrue(isset($object['new'])); // works
$this->assertFalse(array_key_exists('new', $object)); // does not work with iterators
$this->assertFalse(array_key_exists('firstname', $object));
// @see https://stackoverflow.com/a/1538138/4611030
//$this->assertFalse(array_key_exists('new', $object)); // does not work with iterators
//$this->assertFalse(array_key_exists('firstname', $object));
unset($object['new']);
$this->assertFalse(isset($object['new']));
}
Expand Down

0 comments on commit 4f133e6

Please sign in to comment.