Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Tests/Functional/CovertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@
*/
class CovertTest extends TestCase
{
private $tmpDir;

protected function setUp(): void
{
if (!class_exists(Psr7Request::class)) {
$this->markTestSkipped('nyholm/psr7 is not installed.');
}

$this->tmpDir = sys_get_temp_dir();
}

/**
Expand Down Expand Up @@ -233,7 +229,7 @@ public function responseProvider()

private function createUploadedFile($content, $originalName, $mimeType, $error)
{
$path = tempnam($this->tmpDir, uniqid());
$path = tempnam(sys_get_temp_dir(), uniqid());
file_put_contents($path, $content);

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