OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
reader
/
zaws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
S3Control
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/03/2025 08:49:45 AM
rwxr-xr-x
📄
EndpointArnMiddlewareTest.php
21.12 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
S3ControlClientTest.php
1.05 KB
05/19/2025 10:07:13 AM
rw-r--r--
📄
S3ControlTestingTrait.php
581 bytes
05/19/2025 10:07:13 AM
rw-r--r--
Editing: S3ControlClientTest.php
Close
<?php namespace Aws\Test\S3Control; use Aws\Arn\ArnParser; use Aws\Exception\UnresolvedEndpointException; use Aws\S3Control\S3ControlClient; use Aws\Signature\SignatureV4; use GuzzleHttp\Promise; use GuzzleHttp\Psr7\Response; use Psr\Http\Message\RequestInterface; use PHPUnit\Framework\TestCase; /** * @covers Aws\S3Control\S3ControlClient */ class S3ControlClientTest extends TestCase { use S3ControlTestingTrait; public function testAppliesS3ControlEndpointMiddleware() { // test applies the hostprefix trait for account id $handler = function (RequestInterface $req) { $this->assertSame( '111222333444.s3-control.us-west-2.amazonaws.com', $req->getUri()->getHost() ); return Promise\Create::promiseFor(new Response); }; $client = $this->getTestClient([ 'http_handler' => $handler, ]); $client->deletePublicAccessBlock([ 'AccountId' => '111222333444', ]); } }