@@ -34,7 +34,7 @@ class CachingFactoryDecoratorTest extends TestCase
34
34
35
35
protected function setUp (): void
36
36
{
37
- $ this ->decoratedFactory = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface ' )->getMock ();
37
+ $ this ->decoratedFactory = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Factory \ChoiceListFactoryInterface::class )->getMock ();
38
38
$ this ->factory = new CachingFactoryDecorator ($ this ->decoratedFactory );
39
39
}
40
40
@@ -163,7 +163,7 @@ public function testCreateFromChoicesDifferentValueClosure()
163
163
164
164
public function testCreateFromLoaderSameLoader ()
165
165
{
166
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
166
+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
167
167
$ list = new ArrayChoiceList ([]);
168
168
169
169
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -177,8 +177,8 @@ public function testCreateFromLoaderSameLoader()
177
177
178
178
public function testCreateFromLoaderDifferentLoader ()
179
179
{
180
- $ loader1 = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
181
- $ loader2 = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
180
+ $ loader1 = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
181
+ $ loader2 = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
182
182
$ list1 = new ArrayChoiceList ([]);
183
183
$ list2 = new ArrayChoiceList ([]);
184
184
@@ -196,7 +196,7 @@ public function testCreateFromLoaderDifferentLoader()
196
196
197
197
public function testCreateFromLoaderSameValueClosure ()
198
198
{
199
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
199
+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
200
200
$ list = new ArrayChoiceList ([]);
201
201
$ closure = function () {};
202
202
@@ -211,7 +211,7 @@ public function testCreateFromLoaderSameValueClosure()
211
211
212
212
public function testCreateFromLoaderDifferentValueClosure ()
213
213
{
214
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
214
+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
215
215
$ list1 = new ArrayChoiceList ([]);
216
216
$ list2 = new ArrayChoiceList ([]);
217
217
$ closure1 = function () {};
@@ -232,7 +232,7 @@ public function testCreateFromLoaderDifferentValueClosure()
232
232
public function testCreateViewSamePreferredChoices ()
233
233
{
234
234
$ preferred = ['a ' ];
235
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
235
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
236
236
$ view = new ChoiceListView ();
237
237
238
238
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -248,7 +248,7 @@ public function testCreateViewDifferentPreferredChoices()
248
248
{
249
249
$ preferred1 = ['a ' ];
250
250
$ preferred2 = ['b ' ];
251
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
251
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
252
252
$ view1 = new ChoiceListView ();
253
253
$ view2 = new ChoiceListView ();
254
254
@@ -267,7 +267,7 @@ public function testCreateViewDifferentPreferredChoices()
267
267
public function testCreateViewSamePreferredChoicesClosure ()
268
268
{
269
269
$ preferred = function () {};
270
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
270
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
271
271
$ view = new ChoiceListView ();
272
272
273
273
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -283,7 +283,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
283
283
{
284
284
$ preferred1 = function () {};
285
285
$ preferred2 = function () {};
286
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
286
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
287
287
$ view1 = new ChoiceListView ();
288
288
$ view2 = new ChoiceListView ();
289
289
@@ -302,7 +302,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
302
302
public function testCreateViewSameLabelClosure ()
303
303
{
304
304
$ labels = function () {};
305
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
305
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
306
306
$ view = new ChoiceListView ();
307
307
308
308
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -318,7 +318,7 @@ public function testCreateViewDifferentLabelClosure()
318
318
{
319
319
$ labels1 = function () {};
320
320
$ labels2 = function () {};
321
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
321
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
322
322
$ view1 = new ChoiceListView ();
323
323
$ view2 = new ChoiceListView ();
324
324
@@ -337,7 +337,7 @@ public function testCreateViewDifferentLabelClosure()
337
337
public function testCreateViewSameIndexClosure ()
338
338
{
339
339
$ index = function () {};
340
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
340
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
341
341
$ view = new ChoiceListView ();
342
342
343
343
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -353,7 +353,7 @@ public function testCreateViewDifferentIndexClosure()
353
353
{
354
354
$ index1 = function () {};
355
355
$ index2 = function () {};
356
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
356
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
357
357
$ view1 = new ChoiceListView ();
358
358
$ view2 = new ChoiceListView ();
359
359
@@ -372,7 +372,7 @@ public function testCreateViewDifferentIndexClosure()
372
372
public function testCreateViewSameGroupByClosure ()
373
373
{
374
374
$ groupBy = function () {};
375
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
375
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
376
376
$ view = new ChoiceListView ();
377
377
378
378
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -388,7 +388,7 @@ public function testCreateViewDifferentGroupByClosure()
388
388
{
389
389
$ groupBy1 = function () {};
390
390
$ groupBy2 = function () {};
391
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
391
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
392
392
$ view1 = new ChoiceListView ();
393
393
$ view2 = new ChoiceListView ();
394
394
@@ -407,7 +407,7 @@ public function testCreateViewDifferentGroupByClosure()
407
407
public function testCreateViewSameAttributes ()
408
408
{
409
409
$ attr = ['class ' => 'foobar ' ];
410
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
410
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
411
411
$ view = new ChoiceListView ();
412
412
413
413
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -423,7 +423,7 @@ public function testCreateViewDifferentAttributes()
423
423
{
424
424
$ attr1 = ['class ' => 'foobar1 ' ];
425
425
$ attr2 = ['class ' => 'foobar2 ' ];
426
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
426
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
427
427
$ view1 = new ChoiceListView ();
428
428
$ view2 = new ChoiceListView ();
429
429
@@ -442,7 +442,7 @@ public function testCreateViewDifferentAttributes()
442
442
public function testCreateViewSameAttributesClosure ()
443
443
{
444
444
$ attr = function () {};
445
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
445
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
446
446
$ view = new ChoiceListView ();
447
447
448
448
$ this ->decoratedFactory ->expects ($ this ->once ())
@@ -458,7 +458,7 @@ public function testCreateViewDifferentAttributesClosure()
458
458
{
459
459
$ attr1 = function () {};
460
460
$ attr2 = function () {};
461
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
461
+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
462
462
$ view1 = new ChoiceListView ();
463
463
$ view2 = new ChoiceListView ();
464
464
0 commit comments