Skip to content

Commit 00a7a5a

Browse files
gr8manmichalsn
andcommitted
Update tests/system/HTTP/ResponseTest.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent ed20cd8 commit 00a7a5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/system/HTTP/ResponseTest.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,9 @@ public function testGetDownloadResponseByExtremeFilePath(): void
498498
{
499499
$response = new Response(new App());
500500

501-
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir';
502-
@mkdir($tempDir);
501+
$tempDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'ci4_test_dir_' . bin2hex(random_bytes(8));
502+
503+
$this->assertTrue(mkdir($tempDir));
503504
$extremeName = 'my_extreme_file_!@#$%.txt';
504505
$extremePath = $tempDir . DIRECTORY_SEPARATOR . $extremeName;
505506
file_put_contents($extremePath, 'extreme data');

0 commit comments

Comments
 (0)