Skip to content

Commit

Permalink
Name tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed May 5, 2024
1 parent 7ee42d1 commit 13edab3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Core/Config/SniffListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,33 @@ public static function dataInvalidSniffs()

foreach ($arguments as $argument) {
// A standard is not a valid sniff.
$data[] = [
$data[$argument.'; standard'] = [
'argument' => $argument,
'value' => 'Standard',
'message' => sprintf($messageTemplate, 'Standard'),
];

// A category is not a valid sniff.
$data[] = [
$data[$argument.'; category'] = [
'argument' => $argument,
'value' => 'Standard.Category',
'message' => sprintf($messageTemplate, 'Standard.Category'),
];

// An error-code is not a valid sniff.
$data[] = [
$data[$argument.'; error-code'] = [
'argument' => $argument,
'value' => 'Standard.Category',
'message' => sprintf($messageTemplate, 'Standard.Category'),
];

// Only the first error is reported.
$data[] = [
$data[$argument.'; two errors'] = [
'argument' => $argument,
'value' => 'StandardOne,StandardTwo',
'message' => sprintf($messageTemplate, 'StandardOne'),
];
$data[] = [
$data[$argument.'; valid followed by invalid'] = [
'argument' => $argument,
'value' => 'StandardOne.Category.Sniff,StandardTwo.Category',
'message' => sprintf($messageTemplate, 'StandardTwo.Category'),
Expand Down Expand Up @@ -137,7 +137,7 @@ public static function dataValidSniffs()
$data = [];

foreach ($arguments as $argument) {
$data[] = [
$data[$argument.'; one valid sniff'] = [
'argument' => $argument,
'value' => 'Standard.Category.Sniff',
];
Expand Down

0 comments on commit 13edab3

Please sign in to comment.