Skip to content

Commit

Permalink
Merge pull request #235 from ergebnis/fix/assertion
Browse files Browse the repository at this point in the history
Fix: Assertions
  • Loading branch information
ergebnis-bot authored Nov 1, 2020
2 parents 984f707 + 240e892 commit 90a7658
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/Unit/RuleSet/AbstractRuleSetTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ final public function testRulesAreSortedByName(string $source, array $ruleNames)
\sort($sorted);

self::assertEquals($sorted, $ruleNames, \sprintf(
'Failed asserting that the rules are sorted by name in %s.',
'Failed asserting that the rules are sorted by name in "%s".',
$source
));
}
Expand All @@ -151,8 +151,9 @@ final public function testRulesDoNotContainRuleSets(string $source, array $ruleN
});

self::assertEmpty($namesOfConfiguredRuleSets, \sprintf(
"Failed asserting that rule sets \n\n%s\n\nare not configured.",
' - ' . \implode("\n - ", $namesOfConfiguredRuleSets)
"Failed asserting that rule sets \n\n%s\n\nare not configured in \"%s\".",
' - ' . \implode("\n - ", $namesOfConfiguredRuleSets),
$source
));
}

Expand Down

0 comments on commit 90a7658

Please sign in to comment.