Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup file regardless of the stream
Signed-off-by: katsuren <t@k2rn.com>
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
197f195
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change you break many PHPUnit test cases that need to use the UploadedFile object. Only if the object is used multiple times.
$data = array( 'uploadFiles' => array(new UploadedFile( TESTS . '/TestFiles/ABC.pdf', 0, UPLOAD_ERR_OK, 'ABC.pdf', 'application/pdf')), ); $this->post( 'documents/add', $data );
Is there an alternative to still save PHPUnit test cases?
197f195
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@k2rn
Please create an issue report to report the problem.
Thanks in advance! 👍🏻