You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/FileBagTest.php
+8-41Lines changed: 8 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,10 @@ public function testFileMustBeAnArrayOrUploadedFile()
31
31
newFileBag(array('file' => 'foo'));
32
32
}
33
33
34
-
/**
35
-
* @group legacy
36
-
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
@@ -64,26 +60,6 @@ public function testShouldSetEmptyUploadedFilesToNull()
64
60
$this->assertNull($bag->get('file'));
65
61
}
66
62
67
-
/**
68
-
* @group legacy
69
-
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
* @expectedDeprecation Passing a size as 4th argument to the constructor of "Symfony\Component\HttpFoundation\File\UploadedFile" is deprecated since Symfony 4.1 and will be unsupported in 5.0.
100
-
*/
101
97
publicfunctiontestUploadedFile()
102
98
{
103
99
$source = tempnam(sys_get_temp_dir(), 'source');
104
-
file_put_contents($source, '');
100
+
file_put_contents($source, '1');
105
101
$target = sys_get_temp_dir().'/sf.moved.file';
106
102
@unlink($target);
107
103
@@ -110,7 +106,7 @@ public function testUploadedFile()
0 commit comments