-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: FileCollection
#9040
Closed
Closed
refactor: FileCollection
#9040
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kenjis
reviewed
Aug 1, 2024
@@ -165,7 +165,7 @@ protected function populateFiles() | |||
* Given a file array, will create UploadedFile instances. Will | |||
* loop over an array and create objects for each. | |||
* | |||
* @return list<UploadedFile>|UploadedFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remove @return
?
kenjis
reviewed
Aug 1, 2024
@@ -31,7 +31,7 @@ class FileCollection | |||
* Populated the first time either files(), file(), or hasFile() | |||
* is called. | |||
* | |||
* @var array|null | |||
* @var array<string, list<UploadedFile>|UploadedFile>|null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ git diff
diff --git a/system/HTTP/Files/FileCollection.php b/system/HTTP/Files/FileCollection.php
index 73e9c6beaf..5cfbd80306 100644
--- a/system/HTTP/Files/FileCollection.php
+++ b/system/HTTP/Files/FileCollection.php
@@ -159,6 +159,8 @@ class FileCollection
foreach ($files as $name => $file) {
$this->files[$name] = $this->createFileObject($file);
}
+
+ d($this->files);
}
/**
$ vendor/bin/phpunit tests/system/HTTP/Files/FileCollectionTest.php
PHPUnit 11.2.9 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.20
Configuration: /Users/kenji/work/codeigniter/official/CodeIgniter4/phpunit.xml
.
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#376 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1035 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#810 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (2) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#781 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#1001 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (5) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#1042 (8) (
protected 'size' -> integer 4
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#1024 (8) (
protected 'size' -> integer 9
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile3' => CodeIgniter\HTTP\Files\UploadedFile#985 (8) (
protected 'size' -> integer 16
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileC.csv"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileC.csv"
protected 'name' -> string (9) "fileC.csv"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile4' => CodeIgniter\HTTP\Files\UploadedFile#982 (8) (
protected 'size' -> integer 441
protected 'originalMimeType' -> string (15) "application/zip"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileD.zip"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileD.zip"
protected 'name' -> string (9) "fileD.zip"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile5' => CodeIgniter\HTTP\Files\UploadedFile#807 (8) (
protected 'size' -> integer 441
protected 'originalMimeType' -> string (15) "application/rar"
protected 'path' -> string (95) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileE.zip.rar"
protected 'clientPath' -> null
protected 'originalName' -> string (13) "fileE.zip.rar"
protected 'name' -> string (13) "fileE.zip.rar"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (1) [
'foo' => array (1) [
'bar' => CodeIgniter\HTTP\Files\UploadedFile#911 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#782 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (2) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#944 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#926 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (1) [
'foo' => array (1) [
'bar' => CodeIgniter\HTTP\Files\UploadedFile#1009 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#783 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 1
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#986 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 123
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#958 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#895 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 1
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#879 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#863 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#847 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> string (20) "someDir/someFile.txt"
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1121 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1140 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1153 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1187 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1138 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#784 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1221 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#785 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1251 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1271 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1180 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#787 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1205 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => CodeIgniter\HTTP\Files\UploadedFile#788 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1247 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1266 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#790 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
R 27 / 27 (100%)
Time: 00:00.863, Memory: 16.00 MB
There were 26 risky tests:
1) CodeIgniter\HTTP\Files\FileCollectionTest::testAllReturnsValidSingleFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#376 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:39
2) CodeIgniter\HTTP\Files\FileCollectionTest::testAllReturnsValidMultipleFilesSameName
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1035 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#810 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:62
3) CodeIgniter\HTTP\Files\FileCollectionTest::testAllReturnsValidMultipleFilesDifferentName
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (2) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#781 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#1001 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:104
4) CodeIgniter\HTTP\Files\FileCollectionTest::testExtensionGuessing
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (5) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#1042 (8) (
protected 'size' -> integer 4
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#1024 (8) (
protected 'size' -> integer 9
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile3' => CodeIgniter\HTTP\Files\UploadedFile#985 (8) (
protected 'size' -> integer 16
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileC.csv"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileC.csv"
protected 'name' -> string (9) "fileC.csv"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile4' => CodeIgniter\HTTP\Files\UploadedFile#982 (8) (
protected 'size' -> integer 441
protected 'originalMimeType' -> string (15) "application/zip"
protected 'path' -> string (91) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileD.zip"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileD.zip"
protected 'name' -> string (9) "fileD.zip"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile5' => CodeIgniter\HTTP\Files\UploadedFile#807 (8) (
protected 'size' -> integer 441
protected 'originalMimeType' -> string (15) "application/rar"
protected 'path' -> string (95) "/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/HTTP/Files/tmp/fileE.zip.rar"
protected 'clientPath' -> null
protected 'originalName' -> string (13) "fileE.zip.rar"
protected 'name' -> string (13) "fileE.zip.rar"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:149
5) CodeIgniter\HTTP\Files\FileCollectionTest::testAllReturnsValidSingleFileNestedName
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (1) [
'foo' => array (1) [
'bar' => CodeIgniter\HTTP\Files\UploadedFile#911 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:223
6) CodeIgniter\HTTP\Files\FileCollectionTest::testHasFileWithSingleFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#782 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:268
7) CodeIgniter\HTTP\Files\FileCollectionTest::testHasFileWithMultipleFilesWithDifferentNames
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (2) [
'userfile1' => CodeIgniter\HTTP\Files\UploadedFile#944 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
'userfile2' => CodeIgniter\HTTP\Files\UploadedFile#926 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:286
8) CodeIgniter\HTTP\Files\FileCollectionTest::testHasFileWithSingleFileNestedName
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (1) [
'foo' => array (1) [
'bar' => CodeIgniter\HTTP\Files\UploadedFile#1009 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:311
9) CodeIgniter\HTTP\Files\FileCollectionTest::testErrorString
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#783 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 1
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:346
10) CodeIgniter\HTTP\Files\FileCollectionTest::testErrorStringWithUnknownError
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#986 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 123
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:366
11) CodeIgniter\HTTP\Files\FileCollectionTest::testErrorStringWithNoError
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#958 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:386
12) CodeIgniter\HTTP\Files\FileCollectionTest::testError
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#895 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 1
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:405
13) CodeIgniter\HTTP\Files\FileCollectionTest::testErrorWithUnknownError
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#879 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:423
14) CodeIgniter\HTTP\Files\FileCollectionTest::testErrorWithNoError
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#863 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:440
15) CodeIgniter\HTTP\Files\FileCollectionTest::testClientPathReturnsValidFullPath
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#847 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> string (20) "someDir/someFile.txt"
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:458
16) CodeIgniter\HTTP\Files\FileCollectionTest::testClientPathReturnsNullWhenFullPathIsNull
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1121 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:476
17) CodeIgniter\HTTP\Files\FileCollectionTest::testFileReturnsValidSingleFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1140 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:493
18) CodeIgniter\HTTP\Files\FileCollectionTest::testFileNoExistSingleFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#1153 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (19) "/tmp/myTempFile.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (12) "someFile.txt"
protected 'name' -> string (12) "someFile.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:513
19) CodeIgniter\HTTP\Files\FileCollectionTest::testFileReturnValidMultipleFiles
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1187 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1138 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:530
20) CodeIgniter\HTTP\Files\FileCollectionTest::testFileWithMultipleFilesNestedName
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#784 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1221 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:573
21) CodeIgniter\HTTP\Files\FileCollectionTest::testDoesntHaveFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#785 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1251 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:639
22) CodeIgniter\HTTP\Files\FileCollectionTest::testGetFileMultipleHasNoFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1271 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1180 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:692
23) CodeIgniter\HTTP\Files\FileCollectionTest::testGetFileMultipleReturnValidDotNotationSyntax
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#787 (8) (
protected 'size' -> integer 125
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1205 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:723
24) CodeIgniter\HTTP\Files\FileCollectionTest::testGetFileMultipleReturnInvalidDotNotationSyntax
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'my-form' => array (1) [
'details' => array (1) [
'avatars' => CodeIgniter\HTTP\Files\UploadedFile#788 (8) (
protected 'size' -> integer 243
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:791
25) CodeIgniter\HTTP\Files\FileCollectionTest::testGetFileMultipleReturnValidMultipleFiles
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => array (2) [
0 => CodeIgniter\HTTP\Files\UploadedFile#1247 (8) (
protected 'size' -> integer 124
protected 'originalMimeType' -> string (10) "text/plain"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
1 => CodeIgniter\HTTP\Files\UploadedFile#1266 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileB.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileB.txt"
protected 'name' -> string (9) "fileB.txt"
protected 'error' -> null
protected 'hasMoved' -> boolean false
)
]
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:829
26) CodeIgniter\HTTP\Files\FileCollectionTest::testGetFileMultipleReturnInvalidSingleFile
This test printed output:
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ $this->files │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
array (1) [
'userfile' => CodeIgniter\HTTP\Files\UploadedFile#790 (8) (
protected 'size' -> integer 248
protected 'originalMimeType' -> string (8) "text/csv"
protected 'path' -> string (14) "/tmp/fileA.txt"
protected 'clientPath' -> null
protected 'originalName' -> string (9) "fileA.txt"
protected 'name' -> string (9) "fileA.txt"
protected 'error' -> integer 0
protected 'hasMoved' -> boolean false
)
]
═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Called from <ROOT>/system/HTTP/Files/FileCollection.php:163 [d()]
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/system/HTTP/Files/FileCollectionTest.php:874
OK, but there were issues!
Tests: 27, Assertions: 128, Risky: 26.
Will come back on weekend |
ddevsr
force-pushed
the
phpdocs-filecollection
branch
from
August 16, 2024 04:45
e6cf151
to
ca77693
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
See #7731
Checklist: