From 236f58bd12869382f00f11a4c39eee4afd9c8911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 25 Dec 2020 19:23:24 +0100 Subject: [PATCH] Fix: Use assertSame() instead of assertEquals() --- test/Unit/RuleSet/AbstractRuleSetTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index d9a6e387..f0b2edeb 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -44,7 +44,7 @@ final public function testDefaults(): void $ruleSet = self::createRuleSet(); self::assertSame($this->name, $ruleSet->name()); - self::assertEquals($this->rules, $ruleSet->rules()); + self::assertSame($this->rules, $ruleSet->rules()); self::assertSame($this->targetPhpVersion, $ruleSet->targetPhpVersion()); } @@ -98,7 +98,7 @@ final public function testRulesAreSortedByNameInRuleSet(): void \sort($sorted); - self::assertEquals($sorted, $ruleNames, \sprintf( + self::assertSame($sorted, $ruleNames, \sprintf( 'Failed asserting that the rules are sorted by name in rule set "%s".', static::className() )); @@ -112,7 +112,7 @@ final public function testRulesAreSortedByNameInRuleSetTest(): void \sort($sorted); - self::assertEquals($sorted, $ruleNames, \sprintf( + self::assertSame($sorted, $ruleNames, \sprintf( 'Failed asserting that the rules are sorted by name in rule set test "%s".', static::class ));