@@ -25,12 +25,6 @@ abstract class UploadedFileIntegrationTest extends BaseTest
25
25
*/
26
26
abstract public function createSubject ();
27
27
28
- public static function setUpBeforeClass (): void
29
- {
30
- @mkdir ('.tmp ' );
31
- parent ::setUpBeforeClass ();
32
- }
33
-
34
28
protected function setUp (): void
35
29
{
36
30
$ this ->uploadedFile = $ this ->createSubject ();
@@ -56,7 +50,7 @@ public function testGetStreamAfterMoveTo()
56
50
57
51
$ file = $ this ->createSubject ();
58
52
$ this ->expectException (\RuntimeException::class);
59
- $ file ->moveTo (sys_get_temp_dir ().'/foo ' );
53
+ $ file ->moveTo (sys_get_temp_dir ().'/ ' . uniqid ( ' foo ', true ) );
60
54
$ file ->getStream ();
61
55
}
62
56
@@ -81,7 +75,7 @@ public function testMoveToRelative()
81
75
}
82
76
83
77
$ file = $ this ->createSubject ();
84
- $ targetPath = ' .tmp / ' .uniqid ('foo ' , true );
78
+ $ targetPath = sys_get_temp_dir (). ' / ' .uniqid ('foo ' , true );
85
79
86
80
$ this ->assertFalse (is_file ($ targetPath ));
87
81
$ file ->moveTo ($ targetPath );
@@ -96,8 +90,8 @@ public function testMoveToTwice()
96
90
$ this ->expectException (\RuntimeException::class);
97
91
98
92
$ file = $ this ->createSubject ();
99
- $ file ->moveTo (' .tmp / ' .uniqid ('foo ' , true ));
100
- $ file ->moveTo (' .tmp / ' .uniqid ('foo ' , true ));
93
+ $ file ->moveTo (sys_get_temp_dir (). ' / ' .uniqid ('foo ' , true ));
94
+ $ file ->moveTo (sys_get_temp_dir (). ' / ' .uniqid ('foo ' , true ));
101
95
}
102
96
103
97
public function testGetSize ()
0 commit comments