Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Use assertSame() instead of assertEquals() #316

Merged
merged 1 commit into from
Dec 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/Unit/RuleSet/AbstractRuleSetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -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()
));
Expand All @@ -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
));
Expand Down