$form->
setData($data);
// Ensures the data class is defined to accept File instance
$this->
assertSame($data,
$form->
getData());
} /**
* @dataProvider requestHandlerProvider
*/
public function testSubmit(RequestHandlerInterface
$requestHandler) { $form =
$this->factory->
createBuilder(static::TESTED_TYPE
)->
setRequestHandler($requestHandler)->
getForm();
$data =
$this->
createUploadedFile($requestHandler, __DIR__.'/../../../Fixtures/foo', 'foo.jpg'
);
$form->
submit($data);
$this->
assertSame($data,
$form->
getData());
} /**
* @dataProvider requestHandlerProvider
*/
public function testSetDataMultiple(RequestHandlerInterface
$requestHandler) {