Skip to content

Commit

Permalink
Fix temp file to UploadedFileCreatorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Aug 28, 2020
1 parent ac45596 commit b225f9d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/UploadedFileCreatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testCreateFromGlobalsOneFile(): void
'file' => [
'name' => 'file.txt',
'type' => 'text/plain',
'tmp_name' => '/tmp/phpn3FmFr',
'tmp_name' => $this->tmpFile,
'error' => UPLOAD_ERR_OK,
'size' => 1024,
],
Expand Down Expand Up @@ -132,8 +132,8 @@ public function testCreateFromGlobalsLinearMultipleNotStructuredFiles(): void
'file_2' => 'image/png',
],
'tmp_name' => [
'file_1' => '/tmp/phpN3FmFr',
'file_2' => '/tmp/phpLs7DaJ',
'file_1' => $this->tmpFile,
'file_2' => $this->tmpFile,
],
'error' => [
'file_1' => UPLOAD_ERR_OK,
Expand Down Expand Up @@ -196,8 +196,8 @@ public function testCreateFromGlobalsNestedMultipleNotStructuredFiles(): void
'tmp_name' => [
'data' => [
'nested' => [
'file_1' => '/tmp/phpN3FmFr',
'file_2' => '/tmp/phpLs7DaJ',
'file_1' => $this->tmpFile,
'file_2' => $this->tmpFile,
],
],
],
Expand Down Expand Up @@ -256,14 +256,14 @@ public function testCreateFromGlobalsMultipleStructuredFiles(): void
'file_1' => [
'name' => 'file.txt',
'type' => 'text/plain',
'tmp_name' => '/tmp/phpN3FmFr',
'tmp_name' => $this->tmpFile,
'error' => UPLOAD_ERR_OK,
'size' => 1024,
],
'file_2' => [
'name' => 'image.png',
'type' => 'image/png',
'tmp_name' => '/tmp/phpLs7DaJ',
'tmp_name' => $this->tmpFile,
'error' => UPLOAD_ERR_OK,
'size' => 98760,
],
Expand All @@ -290,14 +290,14 @@ public function testCreateFromGlobalsMultipleNestedStructuredFiles(): void
'file_1' => [
'name' => ['file.txt', 'image.png'],
'type' => ['text/plain', 'image/png'],
'tmp_name' => ['/tmp/phpN3FmFr', '/tmp/phpLs7DaJ'],
'tmp_name' => [$this->tmpFile, $this->tmpFile],
'error' => [UPLOAD_ERR_OK, UPLOAD_ERR_OK],
'size' => [1024, 98760],
],
'file_2' => [
'name' => ['audio.mp3', 'video.mp4'],
'type' => ['audio/x-mpeg-3', 'video/mp4'],
'tmp_name' => ['/tmp/phpG7kMhl', '/tmp/phpUj4k9J'],
'tmp_name' => [$this->tmpFile, $this->tmpFile],
'error' => [UPLOAD_ERR_OK, UPLOAD_ERR_OK],
'size' => [10245678, 98766432],
],
Expand Down

0 comments on commit b225f9d

Please sign in to comment.