public function testShouldNotConvertNestedUploadedFiles() {
$tmpFile = $this
->createTempFile();
$file = new UploadedFile($tmpFile, basename($tmpFile), 'text/plain', 100, 0);
$bag = new FileBag(array(
'image' => array(
'file' => $file,
),
));
$files = $bag
->all();
$this
->assertEquals($file, $files['image']['file']);
}