@@ -38,7 +38,7 @@ class CachingFactoryDecoratorTest extends TestCase
38
38
39
39
protected function setUp (): void
40
40
{
41
- $ this ->decoratedFactory = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface ' )->getMock ();
41
+ $ this ->decoratedFactory = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Factory \ChoiceListFactoryInterface::class )->getMock ();
42
42
$ this ->factory = new CachingFactoryDecorator ($ this ->decoratedFactory );
43
43
}
44
44
@@ -238,7 +238,7 @@ public function testCreateFromChoicesDifferentFilterClosure()
238
238
239
239
public function testCreateFromLoaderSameLoader ()
240
240
{
241
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
241
+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
242
242
$ list = new ArrayChoiceList ([]);
243
243
$ list2 = new ArrayChoiceList ([]);
244
244
@@ -269,8 +269,8 @@ public function testCreateFromLoaderSameLoaderUseCache()
269
269
270
270
public function testCreateFromLoaderDifferentLoader ()
271
271
{
272
- $ loader1 = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
273
- $ loader2 = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
272
+ $ loader1 = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
273
+ $ loader2 = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
274
274
$ list1 = new ArrayChoiceList ([]);
275
275
$ list2 = new ArrayChoiceList ([]);
276
276
@@ -288,7 +288,7 @@ public function testCreateFromLoaderDifferentLoader()
288
288
289
289
public function testCreateFromLoaderSameValueClosure ()
290
290
{
291
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
291
+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
292
292
$ type = $ this ->createMock (FormTypeInterface::class);
293
293
$ list = new ArrayChoiceList ([]);
294
294
$ list2 = new ArrayChoiceList ([]);
@@ -328,7 +328,7 @@ public function testCreateFromLoaderSameValueClosureUseCache()
328
328
329
329
public function testCreateFromLoaderDifferentValueClosure ()
330
330
{
331
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
331
+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
332
332
$ type = $ this ->createMock (FormTypeInterface::class);
333
333
$ list1 = new ArrayChoiceList ([]);
334
334
$ list2 = new ArrayChoiceList ([]);
@@ -349,7 +349,7 @@ public function testCreateFromLoaderDifferentValueClosure()
349
349
350
350
public function testCreateFromLoaderSameFilterClosure ()
351
351
{
352
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
352
+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
353
353
$ type = $ this ->createMock (FormTypeInterface::class);
354
354
$ list = new ArrayChoiceList ([]);
355
355
$ list2 = new ArrayChoiceList ([]);
@@ -391,7 +391,7 @@ public function testCreateFromLoaderSameFilterClosureUseCache()
391
391
392
392
public function testCreateFromLoaderDifferentFilterClosure ()
393
393
{
394
- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
394
+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
395
395
$ type = $ this ->createMock (FormTypeInterface::class);
396
396
$ list1 = new ArrayChoiceList ([]);
397
397
$ list2 = new ArrayChoiceList ([]);
@@ -413,7 +413,7 @@ public function testCreateFromLoaderDifferentFilterClosure()
413
413
public function testCreateViewSamePreferredChoices ()
414
414
{
415
415
$ preferred = ['a ' ];
416
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
416
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
417
417
$ view = new ChoiceListView ();
418
418
$ view2 = new ChoiceListView ();
419
419
@@ -447,7 +447,7 @@ public function testCreateViewDifferentPreferredChoices()
447
447
{
448
448
$ preferred1 = ['a ' ];
449
449
$ preferred2 = ['b ' ];
450
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
450
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
451
451
$ view1 = new ChoiceListView ();
452
452
$ view2 = new ChoiceListView ();
453
453
@@ -466,7 +466,7 @@ public function testCreateViewDifferentPreferredChoices()
466
466
public function testCreateViewSamePreferredChoicesClosure ()
467
467
{
468
468
$ preferred = function () {};
469
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
469
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
470
470
$ view = new ChoiceListView ();
471
471
$ view2 = new ChoiceListView ();
472
472
@@ -500,7 +500,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
500
500
{
501
501
$ preferred1 = function () {};
502
502
$ preferred2 = function () {};
503
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
503
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
504
504
$ view1 = new ChoiceListView ();
505
505
$ view2 = new ChoiceListView ();
506
506
@@ -519,7 +519,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
519
519
public function testCreateViewSameLabelClosure ()
520
520
{
521
521
$ labels = function () {};
522
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
522
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
523
523
$ view = new ChoiceListView ();
524
524
$ view2 = new ChoiceListView ();
525
525
@@ -553,7 +553,7 @@ public function testCreateViewDifferentLabelClosure()
553
553
{
554
554
$ labels1 = function () {};
555
555
$ labels2 = function () {};
556
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
556
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
557
557
$ view1 = new ChoiceListView ();
558
558
$ view2 = new ChoiceListView ();
559
559
@@ -572,7 +572,7 @@ public function testCreateViewDifferentLabelClosure()
572
572
public function testCreateViewSameIndexClosure ()
573
573
{
574
574
$ index = function () {};
575
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
575
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
576
576
$ view = new ChoiceListView ();
577
577
$ view2 = new ChoiceListView ();
578
578
@@ -606,7 +606,7 @@ public function testCreateViewDifferentIndexClosure()
606
606
{
607
607
$ index1 = function () {};
608
608
$ index2 = function () {};
609
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
609
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
610
610
$ view1 = new ChoiceListView ();
611
611
$ view2 = new ChoiceListView ();
612
612
@@ -625,7 +625,7 @@ public function testCreateViewDifferentIndexClosure()
625
625
public function testCreateViewSameGroupByClosure ()
626
626
{
627
627
$ groupBy = function () {};
628
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
628
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
629
629
$ view = new ChoiceListView ();
630
630
$ view2 = new ChoiceListView ();
631
631
@@ -659,7 +659,7 @@ public function testCreateViewDifferentGroupByClosure()
659
659
{
660
660
$ groupBy1 = function () {};
661
661
$ groupBy2 = function () {};
662
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
662
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
663
663
$ view1 = new ChoiceListView ();
664
664
$ view2 = new ChoiceListView ();
665
665
@@ -678,7 +678,7 @@ public function testCreateViewDifferentGroupByClosure()
678
678
public function testCreateViewSameAttributes ()
679
679
{
680
680
$ attr = ['class ' => 'foobar ' ];
681
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
681
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
682
682
$ view = new ChoiceListView ();
683
683
$ view2 = new ChoiceListView ();
684
684
@@ -711,7 +711,7 @@ public function testCreateViewDifferentAttributes()
711
711
{
712
712
$ attr1 = ['class ' => 'foobar1 ' ];
713
713
$ attr2 = ['class ' => 'foobar2 ' ];
714
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
714
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
715
715
$ view1 = new ChoiceListView ();
716
716
$ view2 = new ChoiceListView ();
717
717
@@ -730,7 +730,7 @@ public function testCreateViewDifferentAttributes()
730
730
public function testCreateViewSameAttributesClosure ()
731
731
{
732
732
$ attr = function () {};
733
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
733
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
734
734
$ view = new ChoiceListView ();
735
735
$ view2 = new ChoiceListView ();
736
736
@@ -763,7 +763,7 @@ public function testCreateViewDifferentAttributesClosure()
763
763
{
764
764
$ attr1 = function () {};
765
765
$ attr2 = function () {};
766
- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
766
+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
767
767
$ view1 = new ChoiceListView ();
768
768
$ view2 = new ChoiceListView ();
769
769
0 commit comments