@@ -111,48 +111,6 @@ public function testValidationOperatesBeforeFiltering()
111
111
$ this ->assertEquals ($ badValue , $ this ->input ->getValue ());
112
112
}
113
113
114
- public function testGetMessagesReturnsValidationMessages ()
115
- {
116
- $ this ->input ->setAutoPrependUploadValidator (true );
117
- $ this ->input ->setValue ([
118
- 'tmp_name ' => __FILE__ ,
119
- 'name ' => 'foo ' ,
120
- 'size ' => 1 ,
121
- 'error ' => 0 ,
122
- ]);
123
- $ this ->assertFalse ($ this ->input ->isValid ());
124
- $ messages = $ this ->input ->getMessages ();
125
- $ this ->assertArrayHasKey (Validator \File \UploadFile::ATTACK , $ messages );
126
- }
127
-
128
- public function testCanValidateArrayOfMultiFileData ()
129
- {
130
- $ values = [
131
- [
132
- 'tmp_name ' => __FILE__ ,
133
- 'name ' => 'foo ' ,
134
- ],
135
- [
136
- 'tmp_name ' => __FILE__ ,
137
- 'name ' => 'bar ' ,
138
- ],
139
- [
140
- 'tmp_name ' => __FILE__ ,
141
- 'name ' => 'baz ' ,
142
- ],
143
- ];
144
- $ this ->input ->setValue ($ values );
145
- $ this ->input ->setValidatorChain ($ this ->createValidatorChainMock ([
146
- [$ values [0 ], null , true ],
147
- [$ values [1 ], null , true ],
148
- [$ values [2 ], null , true ],
149
- ]));
150
- $ this ->assertTrue (
151
- $ this ->input ->isValid (),
152
- 'isValid() value not match. Detail . ' . json_encode ($ this ->input ->getMessages ())
153
- );
154
- }
155
-
156
114
public function testAutoPrependUploadValidatorIsOnByDefault ()
157
115
{
158
116
$ input = new FileInput ('foo ' );
0 commit comments