Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Nov 25, 2023
1 parent 5f51ef4 commit 86a4166
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Clients/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function testUploadToBig()
new Response(200, [], '{}')
);

$file = __DIR__ . '/../cache/somefile.jpg';
$this->createCacheDir();
$file = $this->getCacheDir() . '/somefile.jpg';
$fp = fopen($file, 'w+'); //
fseek($fp, File::MAX_FILE_SIZE + 1,SEEK_CUR);
fwrite($fp,'a');
Expand All @@ -61,7 +62,8 @@ public function testUpload()
new Response(200, [], '{}')
);

$file = __DIR__ . '/../cache/somefile2.jpg';
$this->createCacheDir();
$file = $this->getCacheDir() . '/somefile2.jpg';
$fp = fopen($file, 'w+'); //
fseek($fp, 5,SEEK_CUR);
fwrite($fp,'a');
Expand Down

0 comments on commit 86a4166

Please sign in to comment.