Skip to content

Commit e42d751

Browse files
committed
Use arrayNotHasKey over isset in tests
1 parent 3b98d88 commit e42d751

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Model/CollectionInfoTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ public function testMissingFields() : void
4242
]);
4343

4444
$this->assertSame([], $info->getOptions());
45-
$this->assertFalse(isset($info['options']));
45+
$this->assertArrayNotHasKey('options', $info);
4646

4747
$this->assertSame([], $info->getInfo());
48-
$this->assertFalse(isset($info['info']));
48+
$this->assertArrayNotHasKey('info', $info);
4949

5050
$this->assertSame([], $info->getIdIndex());
51-
$this->assertFalse(isset($info['idIndex']));
51+
$this->assertArrayNotHasKey('idIndex', $info);
5252
}
5353

5454
public function testCappedCollectionMethods()

0 commit comments

Comments
 (0)