@@ -16,146 +16,30 @@ class ArraySubsetTest extends ConstraintTestCase
16
16
public static function evaluateDataProvider ()
17
17
{
18
18
return [
19
- 'loose associative array subset and array other ' => [
19
+ 'loose array subset and array other ' => [
20
20
'expected ' => true ,
21
21
'subset ' => ['bar ' => 0 ],
22
22
'other ' => ['foo ' => '' , 'bar ' => '0 ' ],
23
23
'strict ' => false
24
24
],
25
- 'strict associative array subset and array other ' => [
25
+ 'strict array subset and array other ' => [
26
26
'expected ' => false ,
27
27
'subset ' => ['bar ' => 0 ],
28
28
'other ' => ['foo ' => '' , 'bar ' => '0 ' ],
29
29
'strict ' => true
30
30
],
31
- 'loose associative array subset and ArrayObject other ' => [
31
+ 'loose array subset and ArrayObject other ' => [
32
32
'expected ' => true ,
33
33
'subset ' => ['bar ' => 0 ],
34
34
'other ' => new \ArrayObject (['foo ' => '' , 'bar ' => '0 ' ]),
35
35
'strict ' => false
36
36
],
37
- 'strict associative ArrayObject subset and array other ' => [
37
+ 'strict ArrayObject subset and array other ' => [
38
38
'expected ' => true ,
39
39
'subset ' => new \ArrayObject (['bar ' => 0 ]),
40
40
'other ' => ['foo ' => '' , 'bar ' => 0 ],
41
41
'strict ' => true
42
42
],
43
- 'loose indexed array subset and array other ' => [
44
- 'expected ' => true ,
45
- 'subset ' => [0 ],
46
- 'other ' => ['' , '0 ' ],
47
- 'strict ' => false
48
- ],
49
- 'strict indexed array subset and array other ' => [
50
- 'expected ' => false ,
51
- 'subset ' => [0 ],
52
- 'other ' => ['' , '0 ' ],
53
- 'strict ' => true
54
- ],
55
- 'loose indexed array subset and ArrayObject other ' => [
56
- 'expected ' => true ,
57
- 'subset ' => [0 ],
58
- 'other ' => new \ArrayObject (['' , '0 ' ]),
59
- 'strict ' => false
60
- ],
61
- 'strict indexed ArrayObject subset and array other ' => [
62
- 'expected ' => true ,
63
- 'subset ' => new \ArrayObject ([0 ]),
64
- 'other ' => ['' , 0 ],
65
- 'strict ' => true
66
- ],
67
- 'loose unordered indexed array subset and array other ' => [
68
- 'expected ' => true ,
69
- 'subset ' => [0 , '1 ' ],
70
- 'other ' => ['1 ' , '2 ' , '0 ' ],
71
- 'strict ' => false
72
- ],
73
- 'strict unordered indexed array subset and array other ' => [
74
- 'expected ' => false ,
75
- 'subset ' => [0 , '1 ' ],
76
- 'other ' => ['1 ' , '2 ' , '0 ' ],
77
- 'strict ' => true
78
- ],
79
- 'loose unordered indexed array subset and ArrayObject other ' => [
80
- 'expected ' => true ,
81
- 'subset ' => [0 , '1 ' ],
82
- 'other ' => new \ArrayObject (['1 ' , '2 ' , '0 ' ]),
83
- 'strict ' => false
84
- ],
85
- 'strict unordered indexed ArrayObject subset and array other ' => [
86
- 'expected ' => true ,
87
- 'subset ' => new \ArrayObject ([0 , '1 ' ]),
88
- 'other ' => ['1 ' , '2 ' , 0 ],
89
- 'strict ' => true
90
- ],
91
- 'loose unordered multidimensional indexed array subset and array other ' => [
92
- 'expected ' => true ,
93
- 'subset ' => [
94
- [[3 , 4 ], 2 ],
95
- '10 ' ,
96
- ],
97
- 'other ' => [
98
- 0 => '1 ' ,
99
- 'a ' => [
100
- 'aa ' => '2 ' ,
101
- 'ab ' => [5 , 4 , 3 ],
102
- 'ac ' => 10 ,
103
- ],
104
- 'b ' => '10 ' ,
105
- ],
106
- 'strict ' => false
107
- ],
108
- 'strict unordered multidimensional indexed array subset and array other ' => [
109
- 'expected ' => false ,
110
- 'subset ' => [
111
- [[3 , 4 ], 2 ],
112
- '10 ' ,
113
- ],
114
- 'other ' => [
115
- 0 => '1 ' ,
116
- 'a ' => [
117
- 'aa ' => '2 ' ,
118
- 'ab ' => [5 , 4 , 3 ],
119
- 'ac ' => 10 ,
120
- ],
121
- 'b ' => '10 ' ,
122
- ],
123
- 'strict ' => true
124
- ],
125
- 'loose unordered multidimensional indexed array subset and ArrayObject other ' => [
126
- 'expected ' => true ,
127
- 'subset ' => [
128
- [[3 , 4 ], 2 ],
129
- '10 ' ,
130
- ],
131
- 'other ' => new \ArrayObject ([
132
- 0 => '1 ' ,
133
- 'a ' => [
134
- 'aa ' => '2 ' ,
135
- 'ab ' => [5 , 4 , 3 ],
136
- 'ac ' => 10 ,
137
- ],
138
- 'b ' => '10 ' ,
139
- ]),
140
- 'strict ' => false
141
- ],
142
- 'strict unordered multidimensional indexed ArrayObject subset and array other ' => [
143
- 'expected ' => true ,
144
- 'subset ' => new \ArrayObject ([
145
- [[3 , 4 ], '2 ' ],
146
- '10 ' ,
147
- ]),
148
- 'other ' => [
149
- 0 => '1 ' ,
150
- 'a ' => [
151
- 'aa ' => '2 ' ,
152
- 'ab ' => [5 , 4 , 3 ],
153
- 'ac ' => 10 ,
154
- ],
155
- 'b ' => '10 ' ,
156
- ],
157
- 'strict ' => true
158
- ],
159
43
];
160
44
}
161
45
@@ -200,3 +84,4 @@ public function testEvaluateFailMessage(): void
200
84
}
201
85
}
202
86
}
87
+
0 commit comments