OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Integ
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 10:55:48 AM
rwxr-xr-x
📄
BatchingContext.php
6.76 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
BlockingContext.php
4.77 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
ConcurrencyContext.php
4.73 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
CredentialsContext.php
4.07 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
CrtContext.php
8.28 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
GuzzleV5HandlerTest.php
2.62 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
GuzzleV6StreamHandlerTest.php
2.44 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
IntegUtils.php
1.53 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
MultipartContext.php
7.36 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
NativeStreamContext.php
4.65 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
S3Context.php
11.13 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
S3EncryptionContext.php
7.44 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
S3EncryptionContextV2.php
7.79 KB
08/14/2024 10:52:43 AM
rw-r--r--
📄
SmokeContext.php
12.25 KB
08/14/2024 10:52:43 AM
rw-r--r--
Editing: IntegUtils.php
Close
<?php namespace Aws\Test\Integ; trait IntegUtils { private static $originalCsmEnabled; private static function getSdk(array $args = []) { return new \Aws\Sdk($args + [ 'region' => 'us-east-1', 'version' => 'latest', 'ua_append' => 'PHPUnit/Integration' ]); } public static function log($message) { fwrite(STDERR, date('c') . ': ' . $message . "\n"); } /** * Get the resource prefix to add to created resources * * @return string */ public static function getResourcePrefix() { if (!isset($_SERVER['PREFIX']) || $_SERVER['PREFIX'] == 'hostname') { $_SERVER['PREFIX'] = crc32(gethostname()) . rand(0, 10000); } return $_SERVER['PREFIX']; } /** * Disable client-side monitoring if local config has it enabled * * @BeforeSuite */ public static function disableCsm() { self::$originalCsmEnabled = getenv( \Aws\ClientSideMonitoring\ConfigurationProvider::ENV_ENABLED ); putenv(\Aws\ClientSideMonitoring\ConfigurationProvider::ENV_ENABLED . '=false' ); } /** * Restore original client-side monitoring enabled flag * * @AfterSuite */ public static function restoreCsmConfig() { putenv(\Aws\ClientSideMonitoring\ConfigurationProvider::ENV_ENABLED . '=' . self::$originalCsmEnabled ); } }