Skip to content

Instantly share code, notes, and snippets.

@k-vagin-parc
k-vagin-parc / UserTest.php
Last active October 26, 2016 09:33
mock file upload
<?php
$list = [];
$fp = new \SplFileObject('php://temp', 'rw');
foreach ($list as $fields) {
$fp->fputcsv($fields);
}
$uploadedFile = \Mockery::mock(
'\Symfony\Component\HttpFoundation\File\UploadedFile',