@@ -38,7 +38,7 @@ class CachingFactoryDecoratorTest extends TestCase
3838
3939 protected function setUp (): void
4040 {
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 ();
4242 $ this ->factory = new CachingFactoryDecorator ($ this ->decoratedFactory );
4343 }
4444
@@ -238,7 +238,7 @@ public function testCreateFromChoicesDifferentFilterClosure()
238238
239239 public function testCreateFromLoaderSameLoader ()
240240 {
241- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
241+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
242242 $ list = new ArrayChoiceList ([]);
243243 $ list2 = new ArrayChoiceList ([]);
244244
@@ -269,8 +269,8 @@ public function testCreateFromLoaderSameLoaderUseCache()
269269
270270 public function testCreateFromLoaderDifferentLoader ()
271271 {
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 ();
274274 $ list1 = new ArrayChoiceList ([]);
275275 $ list2 = new ArrayChoiceList ([]);
276276
@@ -288,7 +288,7 @@ public function testCreateFromLoaderDifferentLoader()
288288
289289 public function testCreateFromLoaderSameValueClosure ()
290290 {
291- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
291+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
292292 $ type = $ this ->createMock (FormTypeInterface::class);
293293 $ list = new ArrayChoiceList ([]);
294294 $ list2 = new ArrayChoiceList ([]);
@@ -328,7 +328,7 @@ public function testCreateFromLoaderSameValueClosureUseCache()
328328
329329 public function testCreateFromLoaderDifferentValueClosure ()
330330 {
331- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
331+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
332332 $ type = $ this ->createMock (FormTypeInterface::class);
333333 $ list1 = new ArrayChoiceList ([]);
334334 $ list2 = new ArrayChoiceList ([]);
@@ -349,7 +349,7 @@ public function testCreateFromLoaderDifferentValueClosure()
349349
350350 public function testCreateFromLoaderSameFilterClosure ()
351351 {
352- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
352+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
353353 $ type = $ this ->createMock (FormTypeInterface::class);
354354 $ list = new ArrayChoiceList ([]);
355355 $ list2 = new ArrayChoiceList ([]);
@@ -391,7 +391,7 @@ public function testCreateFromLoaderSameFilterClosureUseCache()
391391
392392 public function testCreateFromLoaderDifferentFilterClosure ()
393393 {
394- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ ChoiceLoaderInterface' )->getMock ();
394+ $ loader = $ this ->getMockBuilder (ChoiceLoaderInterface::class )->getMock ();
395395 $ type = $ this ->createMock (FormTypeInterface::class);
396396 $ list1 = new ArrayChoiceList ([]);
397397 $ list2 = new ArrayChoiceList ([]);
@@ -413,7 +413,7 @@ public function testCreateFromLoaderDifferentFilterClosure()
413413 public function testCreateViewSamePreferredChoices ()
414414 {
415415 $ preferred = ['a ' ];
416- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
416+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
417417 $ view = new ChoiceListView ();
418418 $ view2 = new ChoiceListView ();
419419
@@ -447,7 +447,7 @@ public function testCreateViewDifferentPreferredChoices()
447447 {
448448 $ preferred1 = ['a ' ];
449449 $ preferred2 = ['b ' ];
450- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
450+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
451451 $ view1 = new ChoiceListView ();
452452 $ view2 = new ChoiceListView ();
453453
@@ -466,7 +466,7 @@ public function testCreateViewDifferentPreferredChoices()
466466 public function testCreateViewSamePreferredChoicesClosure ()
467467 {
468468 $ preferred = function () {};
469- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
469+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
470470 $ view = new ChoiceListView ();
471471 $ view2 = new ChoiceListView ();
472472
@@ -500,7 +500,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
500500 {
501501 $ preferred1 = function () {};
502502 $ preferred2 = function () {};
503- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
503+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
504504 $ view1 = new ChoiceListView ();
505505 $ view2 = new ChoiceListView ();
506506
@@ -519,7 +519,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
519519 public function testCreateViewSameLabelClosure ()
520520 {
521521 $ labels = function () {};
522- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
522+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
523523 $ view = new ChoiceListView ();
524524 $ view2 = new ChoiceListView ();
525525
@@ -553,7 +553,7 @@ public function testCreateViewDifferentLabelClosure()
553553 {
554554 $ labels1 = function () {};
555555 $ labels2 = function () {};
556- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
556+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
557557 $ view1 = new ChoiceListView ();
558558 $ view2 = new ChoiceListView ();
559559
@@ -572,7 +572,7 @@ public function testCreateViewDifferentLabelClosure()
572572 public function testCreateViewSameIndexClosure ()
573573 {
574574 $ index = function () {};
575- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
575+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
576576 $ view = new ChoiceListView ();
577577 $ view2 = new ChoiceListView ();
578578
@@ -606,7 +606,7 @@ public function testCreateViewDifferentIndexClosure()
606606 {
607607 $ index1 = function () {};
608608 $ index2 = function () {};
609- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
609+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
610610 $ view1 = new ChoiceListView ();
611611 $ view2 = new ChoiceListView ();
612612
@@ -625,7 +625,7 @@ public function testCreateViewDifferentIndexClosure()
625625 public function testCreateViewSameGroupByClosure ()
626626 {
627627 $ groupBy = function () {};
628- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
628+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
629629 $ view = new ChoiceListView ();
630630 $ view2 = new ChoiceListView ();
631631
@@ -659,7 +659,7 @@ public function testCreateViewDifferentGroupByClosure()
659659 {
660660 $ groupBy1 = function () {};
661661 $ groupBy2 = function () {};
662- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
662+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
663663 $ view1 = new ChoiceListView ();
664664 $ view2 = new ChoiceListView ();
665665
@@ -678,7 +678,7 @@ public function testCreateViewDifferentGroupByClosure()
678678 public function testCreateViewSameAttributes ()
679679 {
680680 $ attr = ['class ' => 'foobar ' ];
681- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
681+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
682682 $ view = new ChoiceListView ();
683683 $ view2 = new ChoiceListView ();
684684
@@ -711,7 +711,7 @@ public function testCreateViewDifferentAttributes()
711711 {
712712 $ attr1 = ['class ' => 'foobar1 ' ];
713713 $ attr2 = ['class ' => 'foobar2 ' ];
714- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
714+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
715715 $ view1 = new ChoiceListView ();
716716 $ view2 = new ChoiceListView ();
717717
@@ -730,7 +730,7 @@ public function testCreateViewDifferentAttributes()
730730 public function testCreateViewSameAttributesClosure ()
731731 {
732732 $ attr = function () {};
733- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
733+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
734734 $ view = new ChoiceListView ();
735735 $ view2 = new ChoiceListView ();
736736
@@ -763,7 +763,7 @@ public function testCreateViewDifferentAttributesClosure()
763763 {
764764 $ attr1 = function () {};
765765 $ attr2 = function () {};
766- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ ChoiceListInterface' )->getMock ();
766+ $ list = $ this ->getMockBuilder (ChoiceListInterface::class )->getMock ();
767767 $ view1 = new ChoiceListView ();
768768 $ view2 = new ChoiceListView ();
769769
0 commit comments