OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
zzaws-ses
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Retry
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/14/2024 08:01:07 AM
rwxr-xr-x
📄
ConfigurationProviderTest.php
14.48 KB
08/14/2024 07:59:10 AM
rw-r--r--
📄
ConfigurationTest.php
1.23 KB
08/14/2024 07:59:11 AM
rw-r--r--
📄
QuotaManagerTest.php
4.97 KB
08/14/2024 07:59:11 AM
rw-r--r--
📄
RateLimiterTest.php
10.83 KB
08/14/2024 07:59:11 AM
rw-r--r--
Editing: ConfigurationTest.php
Close
<?php namespace Aws\Test\Retry; use Aws\Retry\Configuration; use Yoast\PHPUnitPolyfills\TestCases\TestCase; /** * @covers \Aws\Retry\Configuration */ class ConfigurationTest extends TestCase { public function testGetsCorrectValues() { $config = new Configuration('adaptive', 8); $this->assertSame('adaptive', $config->getMode()); $this->assertSame(8, $config->getMaxAttempts()); } public function testToArray() { $config = new Configuration('standard', 25); $expected = [ 'mode' => 'standard', 'max_attempts' => 25, ]; $this->assertEquals($expected, $config->toArray()); } public function testHandlesInvalidMaxAttempts() { $this->expectExceptionMessage("The 'maxAttempts' parameter has to be an integer >= 1"); $this->expectException(\Aws\Retry\Exception\ConfigurationException::class); new Configuration('standard', 0); } public function testHandlesInvalidMode() { $this->expectExceptionMessage("'foo' is not a valid mode"); $this->expectException(\Aws\Retry\Exception\ConfigurationException::class); new Configuration('foo', 5); } }