From 236197faf82073e3b8afca49161898eb60cee76b Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Fri, 31 May 2019 17:09:50 +0200 Subject: Upgraded external components --- tests/Unit/Http/RequestTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/Unit/Http/RequestTest.php') diff --git a/tests/Unit/Http/RequestTest.php b/tests/Unit/Http/RequestTest.php index 4d942311..3f52709d 100644 --- a/tests/Unit/Http/RequestTest.php +++ b/tests/Unit/Http/RequestTest.php @@ -286,7 +286,7 @@ class RequestTest extends TestCase { $filename = tempnam(sys_get_temp_dir(), 'test'); file_put_contents($filename, 'LoremIpsum!'); - $files = [new SymfonyFile($filename, 'foo.txt', 'text/plain', 11)]; + $files = [new SymfonyFile($filename, 'foo.txt', 'text/plain', UPLOAD_ERR_PARTIAL)]; $request = new Request([], [], [], [], $files); $uploadedFiles = $request->getUploadedFiles(); @@ -298,6 +298,7 @@ class RequestTest extends TestCase $this->assertEquals('foo.txt', $file->getClientFilename()); $this->assertEquals('text/plain', $file->getClientMediaType()); $this->assertEquals(11, $file->getSize()); + $this->assertEquals(UPLOAD_ERR_PARTIAL, $file->getError()); } /** -- cgit v1.2.3-70-g09d2