@@ -609,7 +609,7 @@ public function testSubmitPostOrPutRequest($method)
609
609
'author ' => array (
610
610
'error ' => array ('image ' => UPLOAD_ERR_OK ),
611
611
'name ' => array ('image ' => 'upload.png ' ),
612
- 'size ' => array ('image ' => 123 ),
612
+ 'size ' => array ('image ' => null ),
613
613
'tmp_name ' => array ('image ' => $ path ),
614
614
'type ' => array ('image ' => 'image/png ' ),
615
615
),
@@ -630,7 +630,7 @@ public function testSubmitPostOrPutRequest($method)
630
630
631
631
$ form ->handleRequest ($ request );
632
632
633
- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , 123 , UPLOAD_ERR_OK );
633
+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , null , UPLOAD_ERR_OK );
634
634
635
635
$ this ->assertEquals ('Bernhard ' , $ form ['name ' ]->getData ());
636
636
$ this ->assertEquals ($ file , $ form ['image ' ]->getData ());
@@ -655,7 +655,7 @@ public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
655
655
'image ' => array (
656
656
'error ' => UPLOAD_ERR_OK ,
657
657
'name ' => 'upload.png ' ,
658
- 'size ' => 123 ,
658
+ 'size ' => null ,
659
659
'tmp_name ' => $ path ,
660
660
'type ' => 'image/png ' ,
661
661
),
@@ -676,7 +676,7 @@ public function testSubmitPostOrPutRequestWithEmptyRootFormName($method)
676
676
677
677
$ form ->handleRequest ($ request );
678
678
679
- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , 123 , UPLOAD_ERR_OK );
679
+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , null , UPLOAD_ERR_OK );
680
680
681
681
$ this ->assertEquals ('Bernhard ' , $ form ['name ' ]->getData ());
682
682
$ this ->assertEquals ($ file , $ form ['image ' ]->getData ());
@@ -697,7 +697,7 @@ public function testSubmitPostOrPutRequestWithSingleChildForm($method)
697
697
'image ' => array (
698
698
'error ' => UPLOAD_ERR_OK ,
699
699
'name ' => 'upload.png ' ,
700
- 'size ' => 123 ,
700
+ 'size ' => null ,
701
701
'tmp_name ' => $ path ,
702
702
'type ' => 'image/png ' ,
703
703
),
@@ -714,7 +714,7 @@ public function testSubmitPostOrPutRequestWithSingleChildForm($method)
714
714
715
715
$ form ->handleRequest ($ request );
716
716
717
- $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , 123 , UPLOAD_ERR_OK );
717
+ $ file = new UploadedFile ($ path , 'upload.png ' , 'image/png ' , null , UPLOAD_ERR_OK );
718
718
719
719
$ this ->assertEquals ($ file , $ form ->getData ());
720
720
0 commit comments