OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
aws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
S3
/
RegionalEndpoint
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 11:03:22 AM
rwxr-xr-x
📄
ConfigurationProviderTest.php
10.86 KB
08/14/2024 10:55:49 AM
rw-r--r--
📄
ConfigurationTest.php
1.12 KB
08/14/2024 10:55:49 AM
rw-r--r--
Editing: ConfigurationTest.php
Close
<?php namespace Aws\Test\S3\RegionalEndpoint; use Aws\Sts\RegionalEndpoints\Configuration; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers \Aws\S3\RegionalEndpoint\Configuration */ class ConfigurationTest extends TestCase { public function testGetsCorrectValues() { $config = new Configuration('regional'); $this->assertSame('regional', $config->getEndpointsType()); } public function testAcceptsNonLowercase() { $config = new Configuration('rEgIoNaL'); $this->assertSame('regional', $config->getEndpointsType()); } public function testToArray() { $config = new Configuration('regional'); $expected = [ 'endpoints_type' => 'regional', ]; $this->assertEquals($expected, $config->toArray()); } public function testThrowsOnInvalidEndpointsType() { $this->expectExceptionMessage("Configuration parameter must either be 'legacy' or 'regional'."); $this->expectException(\InvalidArgumentException::class); new Configuration('invalid_type'); } }