Skip to content

Commit 8b6fe0c

Browse files
committed
CheckAndSetTest: make data provider more descriptive
1 parent 5ce0f2e commit 8b6fe0c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/Core/Util/IgnoreList/CheckAndSetTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public static function dataCheckAndSet()
5656
{
5757
return [
5858
'set a code' => [
59-
['Standard.Category.Sniff.Code' => true],
60-
[
59+
'toSet' => ['Standard.Category.Sniff.Code' => true],
60+
'toCheck' => [
6161
'Standard.Category.Sniff.Code' => true,
6262
'Standard.Category.Sniff.OtherCode' => false,
6363
'Standard.Category.OtherSniff.Code' => false,
@@ -66,8 +66,8 @@ public static function dataCheckAndSet()
6666
],
6767
],
6868
'set a sniff' => [
69-
['Standard.Category.Sniff' => true],
70-
[
69+
'toSet' => ['Standard.Category.Sniff' => true],
70+
'toCheck' => [
7171
'Standard.Category.Sniff.Code' => true,
7272
'Standard.Category.Sniff.OtherCode' => true,
7373
'Standard.Category.OtherSniff.Code' => false,
@@ -76,8 +76,8 @@ public static function dataCheckAndSet()
7676
],
7777
],
7878
'set a category' => [
79-
['Standard.Category' => true],
80-
[
79+
'toSet' => ['Standard.Category' => true],
80+
'toCheck' => [
8181
'Standard.Category.Sniff.Code' => true,
8282
'Standard.Category.Sniff.OtherCode' => true,
8383
'Standard.Category.OtherSniff.Code' => true,
@@ -86,8 +86,8 @@ public static function dataCheckAndSet()
8686
],
8787
],
8888
'set a standard' => [
89-
['Standard' => true],
90-
[
89+
'toSet' => ['Standard' => true],
90+
'toCheck' => [
9191
'Standard.Category.Sniff.Code' => true,
9292
'Standard.Category.Sniff.OtherCode' => true,
9393
'Standard.Category.OtherSniff.Code' => true,
@@ -96,11 +96,11 @@ public static function dataCheckAndSet()
9696
],
9797
],
9898
'set a standard, unignore a sniff in it' => [
99-
[
99+
'toSet' => [
100100
'Standard' => true,
101101
'Standard.Category.Sniff' => false,
102102
],
103-
[
103+
'toCheck' => [
104104
'Standard.Category.Sniff.Code' => false,
105105
'Standard.Category.Sniff.OtherCode' => false,
106106
'Standard.Category.OtherSniff.Code' => true,
@@ -109,12 +109,12 @@ public static function dataCheckAndSet()
109109
],
110110
],
111111
'set a standard, unignore a category in it, ignore a sniff in that' => [
112-
[
112+
'toSet' => [
113113
'Standard' => true,
114114
'Standard.Category' => false,
115115
'Standard.Category.Sniff' => true,
116116
],
117-
[
117+
'toCheck' => [
118118
'Standard.Category.Sniff.Code' => true,
119119
'Standard.Category.Sniff.OtherCode' => true,
120120
'Standard.Category.OtherSniff.Code' => false,
@@ -123,14 +123,14 @@ public static function dataCheckAndSet()
123123
],
124124
],
125125
'ignore some sniffs, then override some of those by unignoring the whole category' => [
126-
[
126+
'toSet' => [
127127
'Standard.Category1.Sniff1' => true,
128128
'Standard.Category1.Sniff2' => true,
129129
'Standard.Category2.Sniff1' => true,
130130
'Standard.Category2.Sniff2' => true,
131131
'Standard.Category1' => false,
132132
],
133-
[
133+
'toCheck' => [
134134
'Standard.Category1.Sniff1' => false,
135135
'Standard.Category1.Sniff2' => false,
136136
'Standard.Category2.Sniff1' => true,

0 commit comments

Comments
 (0)