@@ -45,7 +45,7 @@ public function testCreateFromChoicesPropertyPath()
45
45
46
46
$ this ->decoratedFactory ->expects ($ this ->once ())
47
47
->method ('createListFromChoices ' )
48
- ->with ($ choices , $ this ->isInstanceOf (' \Closure ' ))
48
+ ->with ($ choices , $ this ->isInstanceOf (\Closure::class ))
49
49
->willReturnCallback (function ($ choices , $ callback ) {
50
50
return new ArrayChoiceList (array_map ($ callback , $ choices ));
51
51
});
@@ -59,7 +59,7 @@ public function testCreateFromChoicesPropertyPathInstance()
59
59
60
60
$ this ->decoratedFactory ->expects ($ this ->once ())
61
61
->method ('createListFromChoices ' )
62
- ->with ($ choices , $ this ->isInstanceOf (' \Closure ' ))
62
+ ->with ($ choices , $ this ->isInstanceOf (\Closure::class ))
63
63
->willReturnCallback (function ($ choices , $ callback ) {
64
64
return new ArrayChoiceList (array_map ($ callback , $ choices ));
65
65
});
@@ -114,7 +114,7 @@ public function testCreateFromLoaderPropertyPath()
114
114
115
115
$ this ->decoratedFactory ->expects ($ this ->once ())
116
116
->method ('createListFromLoader ' )
117
- ->with ($ loader , $ this ->isInstanceOf (' \Closure ' ))
117
+ ->with ($ loader , $ this ->isInstanceOf (\Closure::class ))
118
118
->willReturnCallback (function ($ loader , $ callback ) {
119
119
return new ArrayChoiceList ((array ) $ callback ((object ) ['property ' => 'value ' ]));
120
120
});
@@ -149,7 +149,7 @@ public function testCreateFromChoicesAssumeNullIfValuePropertyPathUnreadable()
149
149
150
150
$ this ->decoratedFactory ->expects ($ this ->once ())
151
151
->method ('createListFromChoices ' )
152
- ->with ($ choices , $ this ->isInstanceOf (' \Closure ' ))
152
+ ->with ($ choices , $ this ->isInstanceOf (\Closure::class ))
153
153
->willReturnCallback (function ($ choices , $ callback ) {
154
154
return new ArrayChoiceList (array_map ($ callback , $ choices ));
155
155
});
@@ -164,7 +164,7 @@ public function testCreateFromChoiceLoaderAssumeNullIfValuePropertyPathUnreadabl
164
164
165
165
$ this ->decoratedFactory ->expects ($ this ->once ())
166
166
->method ('createListFromLoader ' )
167
- ->with ($ loader , $ this ->isInstanceOf (' \Closure ' ))
167
+ ->with ($ loader , $ this ->isInstanceOf (\Closure::class ))
168
168
->willReturnCallback (function ($ loader , $ callback ) {
169
169
return new ArrayChoiceList ((array ) $ callback (null ));
170
170
});
@@ -178,7 +178,7 @@ public function testCreateFromLoaderPropertyPathInstance()
178
178
179
179
$ this ->decoratedFactory ->expects ($ this ->once ())
180
180
->method ('createListFromLoader ' )
181
- ->with ($ loader , $ this ->isInstanceOf (' \Closure ' ))
181
+ ->with ($ loader , $ this ->isInstanceOf (\Closure::class ))
182
182
->willReturnCallback (function ($ loader , $ callback ) {
183
183
return new ArrayChoiceList ((array ) $ callback ((object ) ['property ' => 'value ' ]));
184
184
});
@@ -192,7 +192,7 @@ public function testCreateViewPreferredChoicesAsPropertyPath()
192
192
193
193
$ this ->decoratedFactory ->expects ($ this ->once ())
194
194
->method ('createView ' )
195
- ->with ($ list , $ this ->isInstanceOf (' \Closure ' ))
195
+ ->with ($ list , $ this ->isInstanceOf (\Closure::class ))
196
196
->willReturnCallback (function ($ list , $ preferred ) {
197
197
return new ChoiceListView ((array ) $ preferred ((object ) ['property ' => true ]));
198
198
});
@@ -206,7 +206,7 @@ public function testCreateViewPreferredChoicesAsPropertyPathInstance()
206
206
207
207
$ this ->decoratedFactory ->expects ($ this ->once ())
208
208
->method ('createView ' )
209
- ->with ($ list , $ this ->isInstanceOf (' \Closure ' ))
209
+ ->with ($ list , $ this ->isInstanceOf (\Closure::class ))
210
210
->willReturnCallback (function ($ list , $ preferred ) {
211
211
return new ChoiceListView ((array ) $ preferred ((object ) ['property ' => true ]));
212
212
});
@@ -221,7 +221,7 @@ public function testCreateViewAssumeNullIfPreferredChoicesPropertyPathUnreadable
221
221
222
222
$ this ->decoratedFactory ->expects ($ this ->once ())
223
223
->method ('createView ' )
224
- ->with ($ list , $ this ->isInstanceOf (' \Closure ' ))
224
+ ->with ($ list , $ this ->isInstanceOf (\Closure::class ))
225
225
->willReturnCallback (function ($ list , $ preferred ) {
226
226
return new ChoiceListView ((array ) $ preferred ((object ) ['category ' => null ]));
227
227
});
@@ -235,7 +235,7 @@ public function testCreateViewLabelsAsPropertyPath()
235
235
236
236
$ this ->decoratedFactory ->expects ($ this ->once ())
237
237
->method ('createView ' )
238
- ->with ($ list , null , $ this ->isInstanceOf (' \Closure ' ))
238
+ ->with ($ list , null , $ this ->isInstanceOf (\Closure::class ))
239
239
->willReturnCallback (function ($ list , $ preferred , $ label ) {
240
240
return new ChoiceListView ((array ) $ label ((object ) ['property ' => 'label ' ]));
241
241
});
@@ -249,7 +249,7 @@ public function testCreateViewLabelsAsPropertyPathInstance()
249
249
250
250
$ this ->decoratedFactory ->expects ($ this ->once ())
251
251
->method ('createView ' )
252
- ->with ($ list , null , $ this ->isInstanceOf (' \Closure ' ))
252
+ ->with ($ list , null , $ this ->isInstanceOf (\Closure::class ))
253
253
->willReturnCallback (function ($ list , $ preferred , $ label ) {
254
254
return new ChoiceListView ((array ) $ label ((object ) ['property ' => 'label ' ]));
255
255
});
@@ -263,7 +263,7 @@ public function testCreateViewIndicesAsPropertyPath()
263
263
264
264
$ this ->decoratedFactory ->expects ($ this ->once ())
265
265
->method ('createView ' )
266
- ->with ($ list , null , null , $ this ->isInstanceOf (' \Closure ' ))
266
+ ->with ($ list , null , null , $ this ->isInstanceOf (\Closure::class ))
267
267
->willReturnCallback (function ($ list , $ preferred , $ label , $ index ) {
268
268
return new ChoiceListView ((array ) $ index ((object ) ['property ' => 'index ' ]));
269
269
});
@@ -277,7 +277,7 @@ public function testCreateViewIndicesAsPropertyPathInstance()
277
277
278
278
$ this ->decoratedFactory ->expects ($ this ->once ())
279
279
->method ('createView ' )
280
- ->with ($ list , null , null , $ this ->isInstanceOf (' \Closure ' ))
280
+ ->with ($ list , null , null , $ this ->isInstanceOf (\Closure::class ))
281
281
->willReturnCallback (function ($ list , $ preferred , $ label , $ index ) {
282
282
return new ChoiceListView ((array ) $ index ((object ) ['property ' => 'index ' ]));
283
283
});
@@ -291,7 +291,7 @@ public function testCreateViewGroupsAsPropertyPath()
291
291
292
292
$ this ->decoratedFactory ->expects ($ this ->once ())
293
293
->method ('createView ' )
294
- ->with ($ list , null , null , null , $ this ->isInstanceOf (' \Closure ' ))
294
+ ->with ($ list , null , null , null , $ this ->isInstanceOf (\Closure::class ))
295
295
->willReturnCallback (function ($ list , $ preferred , $ label , $ index , $ groupBy ) {
296
296
return new ChoiceListView ((array ) $ groupBy ((object ) ['property ' => 'group ' ]));
297
297
});
@@ -305,7 +305,7 @@ public function testCreateViewGroupsAsPropertyPathInstance()
305
305
306
306
$ this ->decoratedFactory ->expects ($ this ->once ())
307
307
->method ('createView ' )
308
- ->with ($ list , null , null , null , $ this ->isInstanceOf (' \Closure ' ))
308
+ ->with ($ list , null , null , null , $ this ->isInstanceOf (\Closure::class ))
309
309
->willReturnCallback (function ($ list , $ preferred , $ label , $ index , $ groupBy ) {
310
310
return new ChoiceListView ((array ) $ groupBy ((object ) ['property ' => 'group ' ]));
311
311
});
@@ -320,7 +320,7 @@ public function testCreateViewAssumeNullIfGroupsPropertyPathUnreadable()
320
320
321
321
$ this ->decoratedFactory ->expects ($ this ->once ())
322
322
->method ('createView ' )
323
- ->with ($ list , null , null , null , $ this ->isInstanceOf (' \Closure ' ))
323
+ ->with ($ list , null , null , null , $ this ->isInstanceOf (\Closure::class ))
324
324
->willReturnCallback (function ($ list , $ preferred , $ label , $ index , $ groupBy ) {
325
325
return new ChoiceListView ((array ) $ groupBy ((object ) ['group ' => null ]));
326
326
});
@@ -334,7 +334,7 @@ public function testCreateViewAttrAsPropertyPath()
334
334
335
335
$ this ->decoratedFactory ->expects ($ this ->once ())
336
336
->method ('createView ' )
337
- ->with ($ list , null , null , null , null , $ this ->isInstanceOf (' \Closure ' ))
337
+ ->with ($ list , null , null , null , null , $ this ->isInstanceOf (\Closure::class ))
338
338
->willReturnCallback (function ($ list , $ preferred , $ label , $ index , $ groupBy , $ attr ) {
339
339
return new ChoiceListView ((array ) $ attr ((object ) ['property ' => 'attr ' ]));
340
340
});
@@ -348,7 +348,7 @@ public function testCreateViewAttrAsPropertyPathInstance()
348
348
349
349
$ this ->decoratedFactory ->expects ($ this ->once ())
350
350
->method ('createView ' )
351
- ->with ($ list , null , null , null , null , $ this ->isInstanceOf (' \Closure ' ))
351
+ ->with ($ list , null , null , null , null , $ this ->isInstanceOf (\Closure::class ))
352
352
->willReturnCallback (function ($ list , $ preferred , $ label , $ index , $ groupBy , $ attr ) {
353
353
return new ChoiceListView ((array ) $ attr ((object ) ['property ' => 'attr ' ]));
354
354
});
0 commit comments