Skip to content

Commit a32a698

Browse files
committed
Use assertArrayHasKey()
1 parent 8c7419c commit a32a698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Unit/RuleSet/RuleSetTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ public function getRulesAssocWithPatternReturnsAllMatchingPropertyNames(
11831183
$result = $this->subject->getRulesAssoc($searchPattern);
11841184

11851185
foreach ($matchingPropertyNames as $expectedMatchingPropertyName) {
1186-
self::assertContains($expectedMatchingPropertyName, \array_keys($result));
1186+
self::assertArrayHasKey($expectedMatchingPropertyName, $result);
11871187
}
11881188
}
11891189

0 commit comments

Comments
 (0)