mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-25 09:06:52 +00:00
Added resumable upload tests
This commit is contained in:
@@ -181,7 +181,9 @@ final readonly class Client implements ClientApiInterface
|
||||
while (!feof($fileResource)) {
|
||||
$chunk = fread($fileResource, $chunkSize);
|
||||
if ($chunk === false) {
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new RuntimeException('Failed to read chunk from file stream.');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
$chunkLength = strlen($chunk);
|
||||
|
||||
Reference in New Issue
Block a user