@@ -623,7 +623,7 @@ public function testSubmitPostOrPutRequest($method)
623623
624624 $ files = [
625625 'author ' => [
626- 'error ' => ['image ' => UPLOAD_ERR_OK ],
626+ 'error ' => ['image ' => \ UPLOAD_ERR_OK ],
627627 'name ' => ['image ' => 'upload.png ' ],
628628 'size ' => ['image ' => null ],
629629 'tmp_name ' => ['image ' => $ path ],
@@ -646,7 +646,7 @@ public function testSubmitPostOrPutRequest($method)
646646
647647 $ form ->handleRequest ($ request );
648648
649- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , UPLOAD_ERR_OK );
649+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , \ UPLOAD_ERR_OK );
650650
651651 $ this ->assertEquals ('Bernhard ' , $ form ['name ' ]->getData ());
652652 $ this ->assertEquals ($ file , $ form ['image ' ]->getData ());
@@ -670,7 +670,7 @@ public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
670670
671671 $ files = [
672672 'image ' => [
673- 'error ' => UPLOAD_ERR_OK ,
673+ 'error ' => \ UPLOAD_ERR_OK ,
674674 'name ' => 'upload.png ' ,
675675 'size ' => null ,
676676 'tmp_name ' => $ path ,
@@ -693,7 +693,7 @@ public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
693693
694694 $ form ->handleRequest ($ request );
695695
696- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , UPLOAD_ERR_OK );
696+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , \ UPLOAD_ERR_OK );
697697
698698 $ this ->assertEquals ('Bernhard ' , $ form ['name ' ]->getData ());
699699 $ this ->assertEquals ($ file , $ form ['image ' ]->getData ());
@@ -713,7 +713,7 @@ public function testSubmitPostOrPutRequestWithSingleChildForm($method)
713713
714714 $ files = [
715715 'image ' => [
716- 'error ' => UPLOAD_ERR_OK ,
716+ 'error ' => \ UPLOAD_ERR_OK ,
717717 'name ' => 'upload.png ' ,
718718 'size ' => null ,
719719 'tmp_name ' => $ path ,
@@ -732,7 +732,7 @@ public function testSubmitPostOrPutRequestWithSingleChildForm($method)
732732
733733 $ form ->handleRequest ($ request );
734734
735- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , UPLOAD_ERR_OK );
735+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , \ UPLOAD_ERR_OK );
736736
737737 $ this ->assertEquals ($ file , $ form ->getData ());
738738
@@ -1117,7 +1117,7 @@ public function testFileUpload()
11171117
11181118 $ this ->form ->submit ([
11191119 'foo ' => 'Foo ' ,
1120- 'bar ' => new UploadedFile (__FILE__ , 'upload.png ' , 'image/png ' , UPLOAD_ERR_OK ),
1120+ 'bar ' => new UploadedFile (__FILE__ , 'upload.png ' , 'image/png ' , \ UPLOAD_ERR_OK ),
11211121 ]);
11221122
11231123 $ this ->assertSame ('Submitted data was expected to be text or number, file upload given. ' , $ this ->form ->get ('bar ' )->getTransformationFailure ()->getMessage ());
0 commit comments