public function testMultipleSubmittedFilePathsAreDropped(RequestHandlerInterface
$requestHandler) { $form =
$this->factory
->
createBuilder(static::TESTED_TYPE, null,
[ 'multiple' => true,
]) ->
setRequestHandler($requestHandler) ->
getForm();
$form->
submit([ 'file:///etc/passwd',
$this->
createUploadedFile(new HttpFoundationRequestHandler(), __DIR__.'/../../../Fixtures/foo', 'foo.jpg'
),
$this->
createUploadedFile(new NativeRequestHandler(), __DIR__.'/../../../Fixtures/foo2', 'foo2.jpg'
),
]);
$this->
assertCount(1,
$form->
getData());
} /**
* @dataProvider requestHandlerProvider
*/
public function testSubmitNonArrayValueWhenMultiple(RequestHandlerInterface
$requestHandler) {