Skip to content

Commit d152649

Browse files
committed
Inline $tmpDir
1 parent f12a9e6 commit d152649

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/Functional/CovertTest.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,11 @@
3434
*/
3535
class CovertTest extends TestCase
3636
{
37-
private $tmpDir;
38-
3937
protected function setUp(): void
4038
{
4139
if (!class_exists(Psr7Request::class)) {
4240
$this->markTestSkipped('nyholm/psr7 is not installed.');
4341
}
44-
45-
$this->tmpDir = sys_get_temp_dir();
4642
}
4743

4844
/**
@@ -233,7 +229,7 @@ public function responseProvider()
233229

234230
private function createUploadedFile($content, $originalName, $mimeType, $error)
235231
{
236-
$path = tempnam($this->tmpDir, uniqid());
232+
$path = tempnam(sys_get_temp_dir(), uniqid());
237233
file_put_contents($path, $content);
238234

239235
return new UploadedFile($path, $originalName, $mimeType, $error, true);

0 commit comments

Comments
 (0)