@@ -103,7 +103,7 @@ public function testCreateFromGlobalsOneFile(): void
103103 'file ' => [
104104 'name ' => 'file.txt ' ,
105105 'type ' => 'text/plain ' ,
106- 'tmp_name ' => ' /tmp/phpn3FmFr ' ,
106+ 'tmp_name ' => $ this -> tmpFile ,
107107 'error ' => UPLOAD_ERR_OK ,
108108 'size ' => 1024 ,
109109 ],
@@ -132,8 +132,8 @@ public function testCreateFromGlobalsLinearMultipleNotStructuredFiles(): void
132132 'file_2 ' => 'image/png ' ,
133133 ],
134134 'tmp_name ' => [
135- 'file_1 ' => ' /tmp/phpN3FmFr ' ,
136- 'file_2 ' => ' /tmp/phpLs7DaJ ' ,
135+ 'file_1 ' => $ this -> tmpFile ,
136+ 'file_2 ' => $ this -> tmpFile ,
137137 ],
138138 'error ' => [
139139 'file_1 ' => UPLOAD_ERR_OK ,
@@ -196,8 +196,8 @@ public function testCreateFromGlobalsNestedMultipleNotStructuredFiles(): void
196196 'tmp_name ' => [
197197 'data ' => [
198198 'nested ' => [
199- 'file_1 ' => ' /tmp/phpN3FmFr ' ,
200- 'file_2 ' => ' /tmp/phpLs7DaJ ' ,
199+ 'file_1 ' => $ this -> tmpFile ,
200+ 'file_2 ' => $ this -> tmpFile ,
201201 ],
202202 ],
203203 ],
@@ -256,14 +256,14 @@ public function testCreateFromGlobalsMultipleStructuredFiles(): void
256256 'file_1 ' => [
257257 'name ' => 'file.txt ' ,
258258 'type ' => 'text/plain ' ,
259- 'tmp_name ' => ' /tmp/phpN3FmFr ' ,
259+ 'tmp_name ' => $ this -> tmpFile ,
260260 'error ' => UPLOAD_ERR_OK ,
261261 'size ' => 1024 ,
262262 ],
263263 'file_2 ' => [
264264 'name ' => 'image.png ' ,
265265 'type ' => 'image/png ' ,
266- 'tmp_name ' => ' /tmp/phpLs7DaJ ' ,
266+ 'tmp_name ' => $ this -> tmpFile ,
267267 'error ' => UPLOAD_ERR_OK ,
268268 'size ' => 98760 ,
269269 ],
@@ -290,14 +290,14 @@ public function testCreateFromGlobalsMultipleNestedStructuredFiles(): void
290290 'file_1 ' => [
291291 'name ' => ['file.txt ' , 'image.png ' ],
292292 'type ' => ['text/plain ' , 'image/png ' ],
293- 'tmp_name ' => [' /tmp/phpN3FmFr ' , ' /tmp/phpLs7DaJ ' ],
293+ 'tmp_name ' => [$ this -> tmpFile , $ this -> tmpFile ],
294294 'error ' => [UPLOAD_ERR_OK , UPLOAD_ERR_OK ],
295295 'size ' => [1024 , 98760 ],
296296 ],
297297 'file_2 ' => [
298298 'name ' => ['audio.mp3 ' , 'video.mp4 ' ],
299299 'type ' => ['audio/x-mpeg-3 ' , 'video/mp4 ' ],
300- 'tmp_name ' => [' /tmp/phpG7kMhl ' , ' /tmp/phpUj4k9J ' ],
300+ 'tmp_name ' => [$ this -> tmpFile , $ this -> tmpFile ],
301301 'error ' => [UPLOAD_ERR_OK , UPLOAD_ERR_OK ],
302302 'size ' => [10245678 , 98766432 ],
303303 ],
0 commit comments