We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04a950 commit 3c0a6eaCopy full SHA for 3c0a6ea
Tests/Factory/HttpFoundationFactoryTest.php
@@ -185,14 +185,14 @@ public function testCreateUploadedFile()
185
186
public function testCreateUploadedFileWithError()
187
{
188
- $this->expectException(FileException::class);
189
- $this->expectExceptionMessage('The file "e" could not be written on disk.');
190
-
191
$uploadedFile = $this->createUploadedFile('Error.', \UPLOAD_ERR_CANT_WRITE, 'e', 'text/plain');
192
$symfonyUploadedFile = $this->callCreateUploadedFile($uploadedFile);
193
194
$this->assertEquals(\UPLOAD_ERR_CANT_WRITE, $symfonyUploadedFile->getError());
195
+ $this->expectException(FileException::class);
+ $this->expectExceptionMessage('The file "e" could not be written on disk.');
+
196
$symfonyUploadedFile->move($this->tmpDir, 'shouldFail.txt');
197
}
198
0 commit comments