Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d152649

Browse filesBrowse files
committed
Inline $tmpDir
1 parent f12a9e6 commit d152649
Copy full SHA for d152649

File tree

1 file changed

+1
-5
lines changed
Filter options

1 file changed

+1
-5
lines changed

‎Tests/Functional/CovertTest.php

Copy file name to clipboardExpand all lines: Tests/Functional/CovertTest.php
+1-5Lines changed: 1 addition & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.