@@ -34,7 +34,7 @@ class CachingFactoryDecoratorTest extends TestCase
3434
3535 protected function setUp (): void
3636 {
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 ();
3838 $ this ->factory = new CachingFactoryDecorator ($ this ->decoratedFactory );
3939 }
4040
@@ -163,7 +163,7 @@ public function testCreateFromChoicesDifferentValueClosure()
163163
164164 public function testCreateFromLoaderSameLoader ()
165165 {
166- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
166+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
167167 $ list = new ArrayChoiceList ([]);
168168
169169 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -177,8 +177,8 @@ public function testCreateFromLoaderSameLoader()
177177
178178 public function testCreateFromLoaderDifferentLoader ()
179179 {
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 ();
182182 $ list1 = new ArrayChoiceList ([]);
183183 $ list2 = new ArrayChoiceList ([]);
184184
@@ -196,7 +196,7 @@ public function testCreateFromLoaderDifferentLoader()
196196
197197 public function testCreateFromLoaderSameValueClosure ()
198198 {
199- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
199+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
200200 $ list = new ArrayChoiceList ([]);
201201 $ closure = function () {};
202202
@@ -211,7 +211,7 @@ public function testCreateFromLoaderSameValueClosure()
211211
212212 public function testCreateFromLoaderDifferentValueClosure ()
213213 {
214- $ loader = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface ' )->getMock ();
214+ $ loader = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \Loader \ChoiceLoaderInterface::class )->getMock ();
215215 $ list1 = new ArrayChoiceList ([]);
216216 $ list2 = new ArrayChoiceList ([]);
217217 $ closure1 = function () {};
@@ -232,7 +232,7 @@ public function testCreateFromLoaderDifferentValueClosure()
232232 public function testCreateViewSamePreferredChoices ()
233233 {
234234 $ preferred = ['a ' ];
235- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
235+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
236236 $ view = new ChoiceListView ();
237237
238238 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -248,7 +248,7 @@ public function testCreateViewDifferentPreferredChoices()
248248 {
249249 $ preferred1 = ['a ' ];
250250 $ preferred2 = ['b ' ];
251- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
251+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
252252 $ view1 = new ChoiceListView ();
253253 $ view2 = new ChoiceListView ();
254254
@@ -267,7 +267,7 @@ public function testCreateViewDifferentPreferredChoices()
267267 public function testCreateViewSamePreferredChoicesClosure ()
268268 {
269269 $ preferred = function () {};
270- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
270+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
271271 $ view = new ChoiceListView ();
272272
273273 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -283,7 +283,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
283283 {
284284 $ preferred1 = function () {};
285285 $ preferred2 = function () {};
286- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
286+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
287287 $ view1 = new ChoiceListView ();
288288 $ view2 = new ChoiceListView ();
289289
@@ -302,7 +302,7 @@ public function testCreateViewDifferentPreferredChoicesClosure()
302302 public function testCreateViewSameLabelClosure ()
303303 {
304304 $ labels = function () {};
305- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
305+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
306306 $ view = new ChoiceListView ();
307307
308308 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -318,7 +318,7 @@ public function testCreateViewDifferentLabelClosure()
318318 {
319319 $ labels1 = function () {};
320320 $ labels2 = function () {};
321- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
321+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
322322 $ view1 = new ChoiceListView ();
323323 $ view2 = new ChoiceListView ();
324324
@@ -337,7 +337,7 @@ public function testCreateViewDifferentLabelClosure()
337337 public function testCreateViewSameIndexClosure ()
338338 {
339339 $ index = function () {};
340- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
340+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
341341 $ view = new ChoiceListView ();
342342
343343 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -353,7 +353,7 @@ public function testCreateViewDifferentIndexClosure()
353353 {
354354 $ index1 = function () {};
355355 $ index2 = function () {};
356- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
356+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
357357 $ view1 = new ChoiceListView ();
358358 $ view2 = new ChoiceListView ();
359359
@@ -372,7 +372,7 @@ public function testCreateViewDifferentIndexClosure()
372372 public function testCreateViewSameGroupByClosure ()
373373 {
374374 $ groupBy = function () {};
375- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
375+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
376376 $ view = new ChoiceListView ();
377377
378378 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -388,7 +388,7 @@ public function testCreateViewDifferentGroupByClosure()
388388 {
389389 $ groupBy1 = function () {};
390390 $ groupBy2 = function () {};
391- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
391+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
392392 $ view1 = new ChoiceListView ();
393393 $ view2 = new ChoiceListView ();
394394
@@ -407,7 +407,7 @@ public function testCreateViewDifferentGroupByClosure()
407407 public function testCreateViewSameAttributes ()
408408 {
409409 $ attr = ['class ' => 'foobar ' ];
410- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
410+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
411411 $ view = new ChoiceListView ();
412412
413413 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -423,7 +423,7 @@ public function testCreateViewDifferentAttributes()
423423 {
424424 $ attr1 = ['class ' => 'foobar1 ' ];
425425 $ attr2 = ['class ' => 'foobar2 ' ];
426- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
426+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
427427 $ view1 = new ChoiceListView ();
428428 $ view2 = new ChoiceListView ();
429429
@@ -442,7 +442,7 @@ public function testCreateViewDifferentAttributes()
442442 public function testCreateViewSameAttributesClosure ()
443443 {
444444 $ attr = function () {};
445- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
445+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
446446 $ view = new ChoiceListView ();
447447
448448 $ this ->decoratedFactory ->expects ($ this ->once ())
@@ -458,7 +458,7 @@ public function testCreateViewDifferentAttributesClosure()
458458 {
459459 $ attr1 = function () {};
460460 $ attr2 = function () {};
461- $ list = $ this ->getMockBuilder (' Symfony\Component\Form\ChoiceList\ChoiceListInterface ' )->getMock ();
461+ $ list = $ this ->getMockBuilder (\ Symfony \Component \Form \ChoiceList \ChoiceListInterface::class )->getMock ();
462462 $ view1 = new ChoiceListView ();
463463 $ view2 = new ChoiceListView ();
464464
0 commit comments