Skip to content

Commit f8b4aa6

Browse files
committed
fix tests
1 parent 3117c85 commit f8b4aa6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Tests/Constraints/FileValidatorTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,7 @@ public function testDisallowEmpty()
412412
*/
413413
public function testUploadedFileError($error, $message, array $params = array(), $maxSize = null)
414414
{
415-
touch('/tmp/file');
416-
$file = new UploadedFile('/tmp/file', 'originalName', 'mime', $error);
415+
$file = new UploadedFile(tempnam(sys_get_temp_dir(), 'file-validator-test-'), 'originalName', 'mime', $error);
417416

418417
$constraint = new File(array(
419418
$message => 'myMessage',

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"symfony/translation": "~3.4|~4.0"
2222
},
2323
"require-dev": {
24-
"symfony/http-foundation": "~3.4|~4.0",
24+
"symfony/http-foundation": "~4.1",
2525
"symfony/http-kernel": "~3.4|~4.0",
2626
"symfony/var-dumper": "~3.4|~4.0",
2727
"symfony/intl": "~3.4|~4.0",

0 commit comments

Comments
 (0)