OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
S3
/
Exception
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:17 AM
rwxr-xr-x
📄
DeleteMultipleObjectsExceptionTest.php
721 bytes
05/19/2025 10:07:17 AM
rw-r--r--
📄
S3MultipartUploadExceptionTest.php
1.38 KB
05/19/2025 10:07:17 AM
rw-r--r--
Editing: S3MultipartUploadExceptionTest.php
Close
<?php namespace Aws\Test\S3\Exception; use Aws\Command; use Aws\Exception\AwsException; use Aws\S3\Exception\S3MultipartUploadException; use Aws\Multipart\UploadState; use GuzzleHttp\Psr7; use PHPUnit\Framework\TestCase; /** * @covers Aws\S3\Exception\S3MultipartUploadException */ class S3MultipartUploadExceptionTest extends TestCase { public function testCanProviderFailedTransferFilePathInfo() { $state = new UploadState([]); $failed = [ 1 => new AwsException('Bad digest.', new Command('UploadPart', [ 'Bucket' => 'foo', 'Key' => 'bar', 'Body' => Psr7\Utils::streamFor('Part 1'), ])), 5 => new AwsException('Missing header.', new Command('UploadPart', [ 'Bucket' => 'foo', 'Key' => 'bar', 'Body' => Psr7\Utils::streamFor('Part 2'), ])), 8 => new AwsException('Needs more love.', new Command('UploadPart')), ]; $path = '/path/to/the/large/file/test.zip'; $exception = new S3MultipartUploadException($state, $failed, [ 'file_name' => $path ]); $this->assertSame('foo', $exception->getBucket()); $this->assertSame('bar', $exception->getKey()); $this->assertSame('php://temp', $exception->getSourceFileName()); } }