OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
CognitoSync
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:55:48 AM
rwxr-xr-x
📄
CognitoSyncClientTest.php
1.17 KB
08/14/2024 10:52:38 AM
rw-r--r--
Editing: CognitoSyncClientTest.php
Close
<?php namespace Aws\Test\CognitoSync; use Aws\Test\UsesServiceTrait; use GuzzleHttp\Promise\FulfilledPromise; use GuzzleHttp\Psr7\Response; use Psr\Http\Message\RequestInterface; use Yoast\PHPUnitPolyfills\TestCases\TestCase; class CognitoSyncClientTest extends TestCase { use UsesServiceTrait; public function testRequestSucceedsWithColon() { $identityId = 'aaa:bbb'; $identityPoolId = 'ccc:ddd'; $client = $this->getTestClient('CognitoSync', [ 'http_handler' => function (RequestInterface $request) use ( $identityId, $identityPoolId ) { foreach ([$identityId, $identityPoolId] as $unencodedString) { $this->assertStringContainsString( urlencode($unencodedString), (string) $request->getUri() ); } return new FulfilledPromise(new Response); }, ]); $client->describeIdentityUsage([ 'IdentityId' => $identityId, 'IdentityPoolId' => $identityPoolId, ]); } }